Hi guys!
I haven't used zabbix in such a huge entherprise, so I am feeling a bit confused about it's speed. Can anybody give me some advice?(
I use three node MariaDB Galera Cluster , each node is a Hyper-V VM located at separate Hyper-V server and has 72GB RAM ,16 vCPU, dynamically allocated VHDX. Configuration is equal on each node and reads as follows:
cat /etc/my.cnf
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
[mysqld]
general_log_file = /var/log/mysqld.log
general_log = 1
log-error = /var/log/mysqld.error.log
wsrep_on=ON
wsrep_node_name=r61zabbixdb02
wsrep_node_address="<ip-node-a>"
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_provider_options="gcache.size=10G;gcache.rec over=yes"
wsrep_cluster_name="zabbix"
wsrep_cluster_address="gcomm://<ip-node-a>,<ip-node-b>,<ip-node-c>
wsrep_sst_method=rsync
max_connections=3000
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
innodb_flush_log_at_trx_commit=0
innodb_buffer_pool_size=49152M
innodb_buffer_pool_instance=16
innodb_old_blocks_time=1000
query_cache_size = 128M
sync_binlog=0
slow_query_log = 1
slow_query_log_file = /var/lib/mysql/slow_queries.log
long_query_time = 0.05
log-queries-not-using-indexes = 1
max_allowed_packet=64M
character_set_server=utf8
collation-server=utf8_bin
init_connect="SET NAMES utf8 collate utf8_bin"
[mysql_safe]
log-error = /var/log/mysqld.error.log
pid-file=/var/run/mysqld/mysqld.pid
#
# include all files from the config directory
#
Zabbix server is also in Hyper-V VM and
zabbix_server.conf is as follows:
StartPollers=300
StartPollersUnreachable=100
StartDiscoverers=250
StartPingers=5
CacheUpdateFrequency=150
StartTrappers=300
StartEscalators=10
StartDBSyncers=100
HistoryCacheSize=512M
HistoryIndexCacheSize=512M
CacheSize=6G
ValueCacheSize=1G
ListenPort=10051
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=<floating ip of haproxy cluster>
DBName=zabbix
DBUser=zabbix
DBPassword=aqNt7BFNT29OrMIYDb4F
DBPort=3306
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
ListenIP=<zabbix-server-ip>
HousekeepingFrequency=1
MaxHousekeeperDelete=100000
TrendCacheSize=1024M
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
Zabbix server connects to MariaDB Cluster via HAProxy which is located on two-node Pacemaker Cluster, on which also Zabbix fronted is. Each node of HAProxy cluster has 16 RAM and 8 vCPU.
I haven't used zabbix in such a huge entherprise, so I am feeling a bit confused about it's speed. Can anybody give me some advice?(
I use three node MariaDB Galera Cluster , each node is a Hyper-V VM located at separate Hyper-V server and has 72GB RAM ,16 vCPU, dynamically allocated VHDX. Configuration is equal on each node and reads as follows:
cat /etc/my.cnf
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
[mysqld]
general_log_file = /var/log/mysqld.log
general_log = 1
log-error = /var/log/mysqld.error.log
wsrep_on=ON
wsrep_node_name=r61zabbixdb02
wsrep_node_address="<ip-node-a>"
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_provider_options="gcache.size=10G;gcache.rec over=yes"
wsrep_cluster_name="zabbix"
wsrep_cluster_address="gcomm://<ip-node-a>,<ip-node-b>,<ip-node-c>
wsrep_sst_method=rsync
max_connections=3000
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
innodb_flush_log_at_trx_commit=0
innodb_buffer_pool_size=49152M
innodb_buffer_pool_instance=16
innodb_old_blocks_time=1000
query_cache_size = 128M
sync_binlog=0
slow_query_log = 1
slow_query_log_file = /var/lib/mysql/slow_queries.log
long_query_time = 0.05
log-queries-not-using-indexes = 1
max_allowed_packet=64M
character_set_server=utf8
collation-server=utf8_bin
init_connect="SET NAMES utf8 collate utf8_bin"
[mysql_safe]
log-error = /var/log/mysqld.error.log
pid-file=/var/run/mysqld/mysqld.pid
#
# include all files from the config directory
#
Zabbix server is also in Hyper-V VM and
zabbix_server.conf is as follows:
StartPollers=300
StartPollersUnreachable=100
StartDiscoverers=250
StartPingers=5
CacheUpdateFrequency=150
StartTrappers=300
StartEscalators=10
StartDBSyncers=100
HistoryCacheSize=512M
HistoryIndexCacheSize=512M
CacheSize=6G
ValueCacheSize=1G
ListenPort=10051
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=<floating ip of haproxy cluster>
DBName=zabbix
DBUser=zabbix
DBPassword=aqNt7BFNT29OrMIYDb4F
DBPort=3306
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
ListenIP=<zabbix-server-ip>
HousekeepingFrequency=1
MaxHousekeeperDelete=100000
TrendCacheSize=1024M
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
Zabbix server connects to MariaDB Cluster via HAProxy which is located on two-node Pacemaker Cluster, on which also Zabbix fronted is. Each node of HAProxy cluster has 16 RAM and 8 vCPU.

Comment