Jump to content
aelius

Instalare percona pe Debian Wheezy

Recommended Posts

Daca utilizati SSD-uri, este o idee buna sa inlocuiti MySQL cu Percona. Veti fi uimit de castigul de performanta. Chiar si cu HDD-uri obisnuite, o sa aveti un castig de 10-30 % in performanta.

Adaugam repo-urile in '/etc/apt/sources.list'


echo "deb http://repo.percona.com/apt wheezy main" >> /etc/apt/sources.list
echo "deb-src http://repo.percona.com/apt wheezy main" >> /etc/apt/sources.list

Adaugam key-ul pentru apt


apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A

Facem un apt-get update pentru o lista cu pachetele actualizate


apt-get update

Instalam percona server, percona client si common files (fisiere de configuratie, etc)


apt-get install percona-server-common-5.5 percona-server-client-5.5 percona-server-server-5.5

Un config se poate vedea aici


# File '/etc/mysql/my.cnf'
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /run/shm
lc-messages-dir = /usr/share/mysql
skip-external-locking

bind-address = 127.0.0.1

key_buffer = 600M
max_allowed_packet = 1200M
open_files_limit = 4096
thread_stack = 192K
thread_cache_size = 8

myisam-recover = BACKUP
max_connections = 1000
max_user_connections = 100
table_cache = 512
thread_concurrency = 2

query_cache_limit = 128M
query_cache_size = 16M

log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2

expire_logs_days = 10
max_binlog_size = 100M

[mysqldump]
quick
quote-names
max_allowed_packet = 1200M

[mysql]

[isamchk]
key_buffer = 16M

#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

Nota: configul este doar ca exemplu, nu-i dati copy/paste in sistemele voastre fara sa stiti cu exactitate ce fac acele variabile.

Ele sunt calculate in in functie de resurse si aplicatii.

Pagina oficiala percona: http://www.percona.com/

Documentatie: http://www.percona.com/docs/wiki/

Edited by aelius
Link to comment
Share on other sites

Nu am asa incredere in benchmark-uri. Am incercat direct pe servere aflate in productie cu aplicatii web intensive. Se vedea clar la diferenta de incarcare cat si la numarul de procese aflate in waiting pe mysql (inainte si dupa)

Sunt curios pe MyISAM cum se comporta, cam pe toate serverele testate se folosea InnoDB.

Link to comment
Share on other sites

Nu am asa incredere in benchmark-uri. Am incercat direct pe servere aflate in productie cu aplicatii web intensive. Se vedea clar la diferenta de incarcare cat si la numarul de procese aflate in waiting pe mysql (inainte si dupa)

Sunt curios pe MyISAM cum se comporta, cam pe toate serverele testate se folosea InnoDB.

Percona nu pune mare accent pe MyISAM, mai degraba folositi mariaDB care e InnoDB-MyISAM must have la ora actuala (arunca un ochi si pe versiunea 10 :X > mariaDB 10.)

uite aici un benchmark frumos: MySQL Benchmarks: MySQL 5.5.11 vs Percona 5.5.10-20.1 vs MariaDB 5.2.5 - InnoDB and MyISAM | vbtechsupport.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...