91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Zabbix配置文件的參數優化和Zabbix的數據庫優化

發布時間:2020-07-25 18:22:35 來源:網絡 閱讀:5569 作者:yht_1990 欄目:數據庫

Zabbix配置文件的參數優化

AlertScriptsPath=/usr/local/zabbix/alertscripts

CacheSize=1024M

CacheUpdateFrequency=300

DebugLevel=3

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

DBSocket=/var/lib/mysql/mysql.sock

ListenPort=10051

LogFileSize=5

LogType=file

LogFile=/data/logs/zabbix/zabbix_server.log

StartPollers=500

StartIPMIPollers=20

StartPollersUnreachable=80

StartTrappers=20

StartPingers=100

SenderFrequency=60

StartDBSyncers=16

StartDiscoverers=120 #zabbix提示進程繁忙時修改此參數,最大二百五,建議100左右,值大消耗cpu性能大

HistoryCacheSize=1024M

Timeout=30

TrendCacheSize=1024M

TrapperTimeout=120

LogSlowQueries=1000

UnreachablePeriod=30

UnavailableDelay=60

ValueCacheSize=1G

JavaGateway=127.0.0.1

JavaGatewayPort=10052

StartJavaPollers=12

PidFile=/tmp/zabbix_server.pid


Zabbix的數據庫優化

egrep -v "(^#|^$)" /etc/my.cnf

[client]

port=3306

socket=/var/lib/mysql/mysql.sock

[mysqld]

port=3306

socket=/var/lib/mysql/mysql.sock

skip-external-locking

character-set-server=utf8

slow_query_log

slow_query_log_file=/var/log/mysql/slowquery.log

long_query_time=2

log-error=/var/log/mysql/log-error.log

skip-name-resolve

max_connections=5000

back_log=300

table-cache=4096

max_allowed_packet=32M

max-heap-table-size=128M

key_buffer_size=128M

sort-buffer-size=16M

join-buffer-size=16M

net_buffer_length=8K

read_buffer_size=256K

read_rnd_buffer_size=512K

myisam_sort_buffer_size=8M

thread-cache-size=16

thread-concurrency=24

query-cache-size=4096M

query-cache-limit=4M

tmp-table-size=128M

log_warnings

innodb_file_per_table=1

innodb_file_io_threads=4

innodb_open_files=2048

innodb_buffer_pool_size=10G

innodb_additional_mem_pool=16M

innodb_thread_concurrency=16

innodb_max_dirty_pages_pct=90

log-bin=mysql-bin

binlog_format=mixed

server-id=1

[mysqldump]

quick

max_allowed_packet=16M

[mysql]

no-auto-rehash

[myisamchk]

key_buffer_size=20M

sort_buffer_size=20M

read_buffer=2M

write_buffer=2M

[mysqlhotcopy]

interactive-timeout



生產環境zabbix配置文件

AlertScriptsPath=/usr/local/zabbix/alertscripts

CacheSize=1024M

CacheUpdateFrequency=300

DebugLevel=3

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

DBSocket=/var/lib/mysql/mysql.sock

ListenPort=10051

LogFileSize=5

LogType=file

LogFile=/data/logs/zabbix/zabbix_server.log

StartPollers=500

StartIPMIPollers=20

StartPollersUnreachable=80

StartTrappers=20

StartPingers=100

SenderFrequency=60

StartDBSyncers=16

StartDiscoverers=120

HistoryCacheSize=1024M

Timeout=30

TrendCacheSize=1024M

TrapperTimeout=120

LogSlowQueries=1000

UnreachablePeriod=30

UnavailableDelay=60

ValueCacheSize=1G

JavaGateway=127.0.0.1

JavaGatewayPort=10052

StartJavaPollers=12

PidFile=/tmp/zabbix_server.pid













向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

郧西县| 嘉祥县| 临高县| 锦屏县| 游戏| 呼图壁县| 大化| 清河县| 延庆县| 彩票| 太白县| 车致| 习水县| 九江县| 繁峙县| 洱源县| 扬州市| 奇台县| 老河口市| 德兴市| 宜川县| 邢台县| 阳谷县| 安顺市| 乐都县| 巴彦县| 宁化县| 嘉祥县| 荥经县| 资中县| 罗甸县| 昭平县| 四平市| 隆回县| 阳东县| 育儿| 泽库县| 天水市| 杂多县| 两当县| 壶关县|