Skip to content

Commit

Permalink
Push the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luyomo committed Nov 29, 2024
1 parent 5a2979e commit 9959bc6
Show file tree
Hide file tree
Showing 15 changed files with 819 additions and 129 deletions.
6 changes: 6 additions & 0 deletions doc/filebeat.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* autodiscover
+ https://github.com/elastic/beats.git
-> libbeat/autodiscover/providers/kubernetes/kubernetes.go: init()
-> libbeat/autodiscover/providers/kubernetes/kubernetes.go: AutodiscoverBuilder
-> libbeat/autodiscover/providers/kubernetes/kubernetes.go: NewEventerManager
-> libbeat/autodiscover/providers/kubernetes/pod.go: NewPodEventer
64 changes: 64 additions & 0 deletions doc/percona-playback.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
* Description
** Option 01
+ Install MariaDB
+ Install PDNS
+ Install TiDB
+
** Option 02
+ MariaDB install
+ Slow query setup
+ TPCH run
+ Data migration from mariadb to TiDB
+ Playback Run On TiDB
+ Report check
* Install
Compile the lib from docker image because the dependency is absolute old.
** docker install
#+BEGIN_SRC
workstation$ sudo apt-get install docker.io
workstation$ sudo chmod -aG docker user
workstation$ docker ps
#+END_SRC
** Compile the source code
#+BEGIN_SRC
workstation$ docker pull centos:7
workstation$ docker run -it -v $(pwd)/output:/opt/output centos:7 bash
root@centos$ yum update -y
root@centos$ yum -y install tbb tbb-devel cmake boost boost-devel make git gcc-c++.x86_64 mariadb-devel.x86_64
root@centos$ git clone https://github.com/Percona-Lab/query-playback.git
root@centos$ cd query-playback/
root@centos$ mkdir build_dir
root@centos$ cd build_dir
root@centos$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
root@centos$ make
root@centos$ cp percona-playback /opt/output/
root@centos$ exit
workstation$ ls output
percona-playback
#+END_SRC
* MARIADB Install
* PDNS Install
* Slow query setup
* Run percona-playback
#+BEGIN_SRC
sudo apt-get install libssl-dev
cd /lib/x86_64-linux-gnu
sudo ln -s libssl.so.1.0.0 libssl.so.10
sudo ln -s libcrypto.so.1.0.0 libcrypto.so.10


wget http://snapshot.debian.org/archive/debian/20190501T215844Z/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb
sudo dpkg -i multiarch-support*.deb

wget http://snapshot.debian.org/archive/debian/20170705T160707Z/pool/main/o/openssl/libssl1.0.0_1.0.2l-1%7Ebpo8%2B1_amd64.deb
sudo dpkg -i libssl1.0.0*.deb


workstation$ cd /usr/lib/x86_64-linux-gnu
workstation$ sudo ln -s libmysqlclient.so libmysqlclient.so.18





#+END_SRC
5 changes: 5 additions & 0 deletions doc/pt-upgrade.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Install
#+BEGIN_SRC
$ wget https://downloads.percona.com/downloads/percona-distribution-mysql-ps/percona-distribution-mysql-ps-8.3.0/binary/tarball/percona-toolkit-3.5.7
_x86_64.tar.gz
#+END_SRC
8 changes: 8 additions & 0 deletions doc/query-replayer.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* [[https://weblabo.oscasierra.net/docker-centos7/][Pull centos docker image]]
* [[https://serverfault.com/questions/904304/could-not-resolve-host-mirrorlist-centos-org-centos-7][Replace yum repo]]
* Install procedure
#+BEGIN_SRC
$ yum -y install tbb tbb-devel cmake boost boost-devel
$ yum install cmake make gcc gcc-c++
$ yum install -y mariadb-devel.x86_64
#+END_SRC
Binary file added doc/read-source-code/png/lightning_backend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/read-source-code/png/region_split.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9959bc6

Please sign in to comment.