1 | ### SYN-3 mysql config, optimized for zarafa. |
---|
2 | # (C)2014 DatuX |
---|
3 | |
---|
4 | # The following options will be passed to all MySQL clients |
---|
5 | [client] |
---|
6 | port = 3306 |
---|
7 | socket = /var/run/mysql/mysql.sock |
---|
8 | |
---|
9 | [mysqld] |
---|
10 | port = 3306 |
---|
11 | socket = /var/run/mysql/mysql.sock |
---|
12 | key_buffer = 64M |
---|
13 | #table_cache = 64 |
---|
14 | sort_buffer_size = 512K |
---|
15 | net_buffer_length = 8K |
---|
16 | read_buffer_size = 256K |
---|
17 | read_rnd_buffer_size = 512K |
---|
18 | myisam_sort_buffer_size = 8M |
---|
19 | thread_stack = 256k |
---|
20 | skip-networking |
---|
21 | |
---|
22 | #dont let mysql decide memory usage (it will be way too much) |
---|
23 | performance_schema = 0 |
---|
24 | |
---|
25 | #dont write buffer at each commit |
---|
26 | #http://dev.mysql.com/doc/refman/5.6/en/optimizing-innodb-transaction-management.html |
---|
27 | innodb_flush_log_at_trx_commit = 0 |
---|
28 | |
---|
29 | #can safely turn this off because we dont use replication |
---|
30 | #http://dev.mysql.com/doc/refman/5.6/en/optimizing-innodb-transaction-management.html |
---|
31 | innodb_support_xa=0 |
---|
32 | |
---|
33 | #innodb_lock_wait_timeout = 50 |
---|
34 | max_connections = 500 |
---|
35 | |
---|
36 | # neccesary for upgrades according to http://dev.mysql.com/doc/refman/5.1/en/upgrading.html |
---|
37 | innodb_fast_shutdown=0 |
---|
38 | |
---|
39 | # default, other settings dont seem to change performance |
---|
40 | #innodb_flush_method=fsync |
---|
41 | |
---|
42 | # this should roughly match the IOPS of the disks. |
---|
43 | # "For systems with individual 5400 RPM or 7200 RPM drives, you might lower the value to the former default of 100." |
---|
44 | innodb_io_capacity=100 |
---|
45 | |
---|
46 | # "You might increase this value for a MySQL server with heavy insert, update, and delete activity" |
---|
47 | innodb_change_buffer_max_size=50 |
---|
48 | |
---|
49 | # "If a write-intensive workload saturates your I/O capacity, decrease the value, especially if you have a large buffer pool." |
---|
50 | innodb_lru_scan_depth=512 |
---|
51 | |
---|
52 | # "A typical setting for a problematic workload might be 1 million, assuming that transactions are small, only 100 bytes in size, and it is permissible to have 100MB of unpurged InnoDB table rows." |
---|
53 | innodb_max_purge_lag=1000000 |
---|
54 | |
---|
55 | ### SYN-3 zarafa settings for about 1000 users: |
---|
56 | # (based on http://doc.zarafa.com/7.1/Administrator_Manual/en-US/html-single/#_PerformanceTuning ) |
---|
57 | |
---|
58 | #"about 50% of RAM size" |
---|
59 | #configured automaticly by run-script: |
---|
60 | innodb_buffer_pool_size = 200000K |
---|
61 | #innodb_buffer_pool_instances = 32 |
---|
62 | |
---|
63 | #"32Mb should be enough" |
---|
64 | query_cache_type=1 |
---|
65 | query_cache_size=32M |
---|
66 | |
---|
67 | #"25% of the innodb_buffer_pool_size" |
---|
68 | #http://dev.mysql.com/doc/refman/5.6/en/optimizing-innodb-logging.html says: "even as big as the bufferpool." |
---|
69 | innodb_log_file_size = 1G |
---|
70 | |
---|
71 | #"32Mb" |
---|
72 | innodb_log_buffer_size = 32M |
---|
73 | |
---|
74 | #we dont want one huge ibdata-file: |
---|
75 | innodb_file_per_table=1 |
---|
76 | |
---|
77 | #at least 16M |
---|
78 | max_allowed_packet = 512M |
---|
79 | |
---|
80 | |
---|
81 | |
---|
82 | [mysqldump] |
---|
83 | quick |
---|
84 | max_allowed_packet = 512M |
---|
85 | |
---|
86 | [mysql] |
---|
87 | no-auto-rehash |
---|
88 | |
---|
89 | [isamchk] |
---|
90 | key_buffer = 20M |
---|
91 | sort_buffer_size = 20M |
---|
92 | read_buffer = 2M |
---|
93 | write_buffer = 2M |
---|
94 | |
---|
95 | [myisamchk] |
---|
96 | key_buffer = 20M |
---|
97 | sort_buffer_size = 20M |
---|
98 | read_buffer = 2M |
---|
99 | write_buffer = 2M |
---|
100 | |
---|
101 | [mysqlhotcopy] |
---|
102 | interactive-timeout |
---|