Open leginonbot opened 8 months ago
Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2017-05-31T18:32:58Z
I think the problem is "Long MySQL query of 10962851 characters", we are trying to commit all particles at once...
Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2017-05-31T18:39:36Z
Hi Carl,
edit myami/appion/appionlib/apStack.py line 548
1. break up command into groups of 100K inserts
1. this is a workaround for the max_allowed_packet at 16MB
n = 100000
I think we just need to lower the value of n
Original Redmine Comment Author Name: Carl Negro (@carl9384) Original Date: 2017-05-31T20:46:16Z
Still no good with n = 80000 and n = 30000.
Original Redmine Comment Author Name: Sargis Dallakyan (@dallakyan) Original Date: 2017-05-31T21:16:22Z
I've changed max allowed packet from 1048576 to 104857600 using @SET GLOBAL max_allowed_packet =104857600;@. I've also copied the following variables from old my.cnf to the new server. key_buffer = 1512M max_allowed_packet = 16M table_cache = 11212 sort_buffer_size=16M read_buffer_size = 18M read_rnd_buffer_size = 18M myisam_sort_buffer_size = 164M thread_cache_size = 8 query_cache_size=132M query_cache_limit=116M max_connections = 1350 interactive_timeout = 864000 wait_timeout = 864000 max_heap_table_size=132M tmp_table_size=1032M join_buffer_size=1256K
This will not take affect until mysqld restart.
Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2017-05-31T21:20:50Z
If you setup a new database server the default my.cnf would be 1M, but the my-huge.cnf has a better setting.
In Docker, I run the following commands to setup CentOS 6 and 7:
cp -fv /usr/share/mysql/my-huge.cnf /etc/my.cnf
sed -i.bak 's/max_allowed_packet = [0-9]*M/max_allowed_packet = 24M/' /etc/my.cnf
Author Name: Carl Negro (@carl9384) Original Redmine Issue: 4995, https://emg.nysbc.org/redmine/issues/4995 Original Date: 2017-05-31
Log from Priyamvada's 17may30c session: