ich versuche mich mal so kurz wie möglich zu fassen. Ich habe einen Root Server XXL bei Hosteurope mit 48 GB Ram, 2 Cores (1 x AMD 12-Cores) und 4 × 1.000 GB im RAID 10.
Auf Plesk habe ich verzichtet und habe nach Anleitung ISPConfig installiert.
Auf dem Server läuft "nur" ein XTCommerce Shop mit einer SQL Datenbank. Die Datenbank ist rund 1 GB groß und hat immer eine hohe Auslastung. Nun bin ich eurer Anleitung aus diesem Thread gefolgt: http://www.rootforum.org/forum/viewtopi ... 03&t=36343
Es ist schon deutlich besser geworden, aber dennoch gibt es momente an denen Minutenlang nichts mehr geht, weil der Mysqlthread auf alles Cores voll ausgelastet ist.
Ich wäre euch unheimlich dankbar, wen ihr euch mal meine SQL Settings anschauen können und sagen würdet was ich evtl. falsch gemacht habe. Ich glaube, das ich zu viel verstellt habe ](*,)
Code: Select all
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 256M
max_allowed_packet = 32M
thread_stack = 192K
thread_cache_size = 80
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 500
table_cache = 1024
thread_concurrency = 12
#
query_cache_limit = 2M
query_cache_size = 128M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
log_error = /var/log/mysql/error.log
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
#innodb_thread_concurrency = 8
#innodb_buffer_pool_size = 2G
#innodb_additional_mem_pool_size = 16M
#innodb_data_home_dir = /var/lib/mysql
#innodb_log_group_home_dir = /var/lib/mysql
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
#innodb_flush_method = O_DIRECT
#innodb_log_file_size = 128M
#innodb_log_buffer_size = 16M
#innodb_log_files_in_group = 2
#innodb_flush_log_at_trx_commit = 2
#innodb_max_dirty_pages_pct = 90
#innodb_file_per_table = 1
#innodb_purge_threads = 1
#innodb_strict_mode = 1
#innodb_old_blocks_time = 1000
#innodb_stats_on_metadata = 0
#innodb_thread_concurrency=2
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[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/
So habe ich das Problem, das ich im htop den Prozess /usr/sbin/mysqld/ rund 30 mal habe, ohne das er Cpu nutzt. Nur 0.8 MEM%
Ich bin noch ein Anfänger im Servergebiet und danke vorab für eure Hilfe ;)
Gruß Heiko