Mysql (InnoDB) config settings for better performance? -
recently updated vps 1gb 4gb memory. i'd hoped queries (mysql/innodb) running faster more memory, unfortunately that's not case. mysql automatically takes more memory when server has more memory or have change settings in my.cnf? , if so, changes should make?
mysql not automatically take benefit of more memory installed.
in case (given using innodb
) can @ least these improve performance of mysql:
- increase
innodb_buffer_pool_size
(default value option 128mb). defines how memory dedicated mysql innodb cache data tables , idexes. means if can allocate more memory mysql cache more of data resulting in faster queries (because mysql in memory instead of doing i/o operations data lookup). of course should allocate reasonable amount of memory (not whole 4g :)) may not more 2g. should try , test on server more accurate result. (read more info, before change option https://dev.mysql.com/doc/refman/5.7/en/innodb-buffer-pool-resize.html) - increase
innodb_buffer_pool_instances
. case may 1 or 2 instances more enough. (you can read more here: https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_buffer_pool_instances)
but before starting editing of my.ini
calculations case. consider mysql server load, slow queries etc. more accurate setup of options in my.ini
Comments
Post a Comment