Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
mflorell wrote:You do know that I created VICIdial by myself and I wrote most of the code and I am still the maintainer of the codebase, right?
There were multiple causes for that one problem. I believe we've finally fixed them all as of March of 2017. But there were several major code rewrites to fix each of the issues involved over the last several years.
[mysqld]
port = 3306
socket = /var/run/mysql/mysql.sock
key_buffer_size = 640M
key_buffer = 512M
max_allowed_packet = 2M
table_open_cache = 8192
table_cache = 8192
sort_buffer_size = 16M
read_buffer_size = 16M
join_buffer_size = 16M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 128M
thread_cache_size = 128
query_cache_size = 0 # 0 = deaktivieren
datadir=/var/lib/mysql
#query_cache_limit = 1M
#query_cache_min_res_unit = 1024 # Use this is you have TONS of small queries
thread_concurrency = 48 # Try number of CPU's*2 for thread_concurrency
log-error=mysqld.error.log
log-slow-queries=mysql-slowquery.log
# ViciDial DB-Only Settings
connect_timeout=60
wait_timeout = 28800
slow_query_log
long_query_time = 0.5
max_connections=1200
open_files_limit=24576
max_heap_table_size = 1G
bulk_insert_buffer_size = 1G #recommend same size as tmp_table_size
tmp_table_size = 1G #recommend 1G min
concurrent_insert=2
expire_logs_days=3
#log-queries-not-using-indexes=1
skip-locking
skip-innodb
skip-name-resolve
skip-host-cache
mysql> select benchmark(20000000,(select count(*) from vicidial_live_agents where closer_campaigns like '%K%'));
+----------------------------------------------------------------------------------------------------+
| benchmark(20000000,(select count(*) from vicidial_live_agents where closer_campaigns like '%K%')) |
+----------------------------------------------------------------------------------------------------+
| 0 |
+----------------------------------------------------------------------------------------------------+
1 row in set (0.74 sec)
mysql_slow_query is default ON with 0.5 seconds.
Users browsing this forum: Google [Bot] and 38 guests