gudwin
NoDeny
Пользователь
Карма: 0
Offline
Сообщений: 85
|
|
« Ответ #15 : 05 Февраля 2018, 18:08:28 » |
|
Периодические записи в логе freeradius такого рода Sun Feb 4 08:53:43 2018 : Error: [sql] Couldn't update SQL accounting ALIVE record - Deadlock found when trying to get lock; try restarting transaction Sun Feb 4 08:53:43 2018 : Error: rlm_sql_mysql: Cannot store result Sun Feb 4 08:53:43 2018 : Error: rlm_sql_mysql: MySQL error 'Deadlock found when trying to get lock; try restarting transaction' Mon Feb 5 01:32:00 2018 : Error: rlm_sql (sql) in sql_postauth: Database query error - Deadlock found when trying to get lock; try restarting transaction Говорят о данной проблеме ? В логе самого мускула пусто. show engine innodb status; покажите что выдает
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #16 : 05 Февраля 2018, 19:26:29 » |
|
InnoDB
===================================== 2018-02-05 19:21:42 7efd0e60b700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 7 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 5554631 srv_active, 0 srv_shutdown, 10469 srv_idle srv_master_thread log flush and writes: 5564818 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 13794285 OS WAIT ARRAY INFO: signal count 14003827 Mutex spin waits 21527290, rounds 308023037, OS waits 9410597 RW-shared spins 4481949, rounds 130026393, OS waits 4275545 RW-excl spins 261627, rounds 4811527, OS waits 73024 Spin rounds per wait: 14.31 mutex, 29.01 RW-shared, 18.39 RW-excl ------------------------ LATEST DETECTED DEADLOCK ------------------------ 2018-02-05 19:16:27 7efd28157700 *** (1) TRANSACTION: TRANSACTION 512587367, ACTIVE 0 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 3 lock struct(s), heap size 1184, 2 row lock(s) MySQL thread id 8358, OS thread handle 0x7efd6591f700, query id 946881457 172.19.0.1 nodeny updating UPDATE ip_pool SET `release` = UNIX_TIMESTAMP() + 300 WHERE ip = INET_ATON( NAME_CONST('usr_ip',_latin1'10.193.2.1' COLLATE 'latin1_swedish_ci')) AND type = 'dynamic' LIMIT 1 *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587367 lock_mode X locks rec but not gap waiting lock hold time 0 wait time before grant 0 *** (2) TRANSACTION: TRANSACTION 512587358, ACTIVE 0 sec fetching rows mysql tables in use 3, locked 5 31 lock struct(s), heap size 6544, 15050 row lock(s) MySQL thread id 8360, OS thread handle 0x7efd28157700, query id 946881408 172.19.0.1 nodeny Sending data UPDATE ip_pool SET uid = NAME_CONST('user_id',812), `release` = UNIX_TIMESTAMP() + 300 WHERE id = (SELECT id FROM ( (SELECT id, uid FROM ip_pool WHERE uid = 0 AND type = 'dynamic' AND realip = IF( NAME_CONST('real_ip',NULL)>0,1,0) LIMIT 1) UNION (SELECT id, uid FROM ip_pool WHERE uid = NAME_CONST('user_id',812) AND type = 'dynamic' AND realip = IF( NAME_CONST('real_ip',NULL)>0,1,0) LIMIT 1) ) AS tbl ORDER BY uid DESC LIMIT 1) *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587358 lock_mode X locks rec but not gap lock hold time 0 wait time before grant 0 *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587358 lock_mode X waiting lock hold time 0 wait time before grant 0 *** WE ROLL BACK TRANSACTION (1) ------------ TRANSACTIONS ------------ Trx id counter 512620496 Purge done for trx's n:o < 512620495 undo n:o < 0 state: running but idle History list length 41 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0, not started MySQL thread id 3053566, OS thread handle 0x7efd0e60b700, query id 946945312 localhost 127.0.0.1 root init show engine innodb STATUS ---TRANSACTION 0, not started MySQL thread id 3053518, OS thread handle 0x7efd067f5700, query id 946938247 localhost 127.0.0.1 mailuser cleaning up ---TRANSACTION 512615340, not started MySQL thread id 3036125, OS thread handle 0x7efd0c150700, query id 946935274 172.19.0.12 nodeny cleaning up ---TRANSACTION 512618190, not started MySQL thread id 3036106, OS thread handle 0x7efd0c39c700, query id 946941130 172.19.0.12 nodeny cleaning up ---TRANSACTION 512609773, not started MySQL thread id 3033913, OS thread handle 0x7efcfb36c700, query id 946923378 localhost zabbix cleaning up ---TRANSACTION 512615302, not started MySQL thread id 3031967, OS thread handle 0x7efd16dc4700, query id 946935206 localhost zabbix cleaning up ---TRANSACTION 512620471, not started MySQL thread id 3012801, OS thread handle 0x7efd658bd700, query id 946945250 localhost nodeny cleaning up ---TRANSACTION 512620361, not started MySQL thread id 2991498, OS thread handle 0x7efd0c08c700, query id 946944952 localhost zabbix cleaning up ---TRANSACTION 512617219, not started MySQL thread id 2991436, OS thread handle 0x7efd0e5da700, query id 946938582 localhost zabbix cleaning up ---TRANSACTION 512617316, not started MySQL thread id 2942979, OS thread handle 0x7efd0c11f700, query id 946938806 172.19.0.12 nodeny cleaning up ---TRANSACTION 512615152, not started MySQL thread id 2936489, OS thread handle 0x7efd06452700, query id 946934803 172.19.0.12 nodeny cleaning up ---TRANSACTION 512618467, not started MySQL thread id 2925925, OS thread handle 0x7efd0e578700, query id 946941680 localhost zabbix cleaning up ---TRANSACTION 512620345, not started MySQL thread id 2307611, OS thread handle 0x7efd67567700, query id 946945229 localhost nodeny cleaning up ---TRANSACTION 512612607, not started MySQL thread id 2184255, OS thread handle 0x7efd0e63c700, query id 946929535 localhost zabbix cleaning up ---TRANSACTION 512600694, not started MySQL thread id 2183835, OS thread handle 0x7efd16c9e700, query id 946905732 localhost zabbix cleaning up ---TRANSACTION 512620088, not started MySQL thread id 2183808, OS thread handle 0x7efd0e483700, query id 946944200 localhost zabbix cleaning up ---TRANSACTION 512606531, not started MySQL thread id 2183767, OS thread handle 0x7efd65ad8700, query id 946916906 localhost zabbix cleaning up ---TRANSACTION 512594797, not started MySQL thread id 2183746, OS thread handle 0x7efd5adc7700, query id 946894513 localhost zabbix cleaning up ---TRANSACTION 512620358, not started MySQL thread id 493646, OS thread handle 0x7efd67472700, query id 946944939 localhost zabbix cleaning up ---TRANSACTION 512041425, not started MySQL thread id 493697, OS thread handle 0x7efd16f1b700, query id 946940708 localhost zabbix cleaning up ---TRANSACTION 512615449, not started MySQL thread id 493639, OS thread handle 0x7efd65b9c700, query id 946936160 localhost zabbix cleaning up ---TRANSACTION 512620289, not started MySQL thread id 493642, OS thread handle 0x7efd67505700, query id 946944749 localhost zabbix cleaning up ---TRANSACTION 512620421, not started MySQL thread id 493641, OS thread handle 0x7efd16d00700, query id 946945113 localhost zabbix cleaning up ---TRANSACTION 512620464, not started MySQL thread id 493640, OS thread handle 0x7efd16d62700, query id 946945233 localhost zabbix cleaning up ---TRANSACTION 512361987, not started MySQL thread id 493647, OS thread handle 0x7efd65b3a700, query id 946945130 localhost zabbix cleaning up ---TRANSACTION 512036270, not started MySQL thread id 493661, OS thread handle 0x7efd68440700, query id 946945195 localhost zabbix cleaning up ---TRANSACTION 512620057, not started MySQL thread id 493657, OS thread handle 0x7efd6afec700, query id 946944120 localhost zabbix cleaning up ---TRANSACTION 512620420, not started MySQL thread id 493644, OS thread handle 0x7efd16c6d700, query id 946945108 localhost zabbix cleaning up ---TRANSACTION 510058043, not started MySQL thread id 493643, OS thread handle 0x7efd16d93700, query id 946945287 localhost zabbix cleaning up ---TRANSACTION 512620387, not started MySQL thread id 8968, OS thread handle 0x7efd65a45700, query id 946945019 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620433, not started MySQL thread id 8330, OS thread handle 0x7efd65a14700, query id 946945131 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620427, not started MySQL thread id 8331, OS thread handle 0x7efd16df5700, query id 946945114 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620419, not started MySQL thread id 8332, OS thread handle 0x7efd16fae700, query id 946945091 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620410, not started MySQL thread id 8333, OS thread handle 0x7efd16eb9700, query id 946945072 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620404, not started MySQL thread id 8334, OS thread handle 0x7efd659b2700, query id 946945055 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620398, not started MySQL thread id 8335, OS thread handle 0x7efd16f4c700, query id 946945039 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620392, not started MySQL thread id 8336, OS thread handle 0x7efd16eea700, query id 946945020 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620385, not started MySQL thread id 8337, OS thread handle 0x7efd65a76700, query id 946945002 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620379, not started MySQL thread id 8338, OS thread handle 0x7efd16e57700, query id 946944986 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620373, not started MySQL thread id 8339, OS thread handle 0x7efd280c4700, query id 946944970 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620367, not started MySQL thread id 8340, OS thread handle 0x7efd16f7d700, query id 946944953 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620357, not started MySQL thread id 8341, OS thread handle 0x7efd65b09700, query id 946944920 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620351, not started MySQL thread id 8342, OS thread handle 0x7efd28126700, query id 946944904 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620343, not started MySQL thread id 8343, OS thread handle 0x7efd28062700, query id 946944881 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620337, not started MySQL thread id 8344, OS thread handle 0x7efd6585b700, query id 946944864 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620336, not started MySQL thread id 8345, OS thread handle 0x7efd5ad34700, query id 946944849 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620325, not started MySQL thread id 8346, OS thread handle 0x7efd65b6b700, query id 946944833 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620319, not started MySQL thread id 8347, OS thread handle 0x7efd5adf8700, query id 946944817 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620313, not started MySQL thread id 8348, OS thread handle 0x7efd5ad96700, query id 946944801 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620307, not started MySQL thread id 8349, OS thread handle 0x7efd5acd2700, query id 946944783 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620301, not started MySQL thread id 8350, OS thread handle 0x7efd16fdf700, query id 946944767 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620295, not started MySQL thread id 8351, OS thread handle 0x7efd5ac3f700, query id 946944750 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620288, not started MySQL thread id 8352, OS thread handle 0x7efd280f5700, query id 946944729 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620495, not started MySQL thread id 8353, OS thread handle 0x7efd5aca1700, query id 946945288 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620488, not started MySQL thread id 8354, OS thread handle 0x7efd5ad65700, query id 946945267 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620479, not started MySQL thread id 8355, OS thread handle 0x7efd28031700, query id 946945251 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620470, not started MySQL thread id 8356, OS thread handle 0x7efd5ac70700, query id 946945234 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620463, not started MySQL thread id 8357, OS thread handle 0x7efd6588c700, query id 946945212 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620457, not started MySQL thread id 8358, OS thread handle 0x7efd6591f700, query id 946945196 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620451, not started MySQL thread id 8359, OS thread handle 0x7efd5ad03700, query id 946945179 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620445, not started MySQL thread id 8360, OS thread handle 0x7efd28157700, query id 946945163 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620439, not started MySQL thread id 8361, OS thread handle 0x7efd659e3700, query id 946945147 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620344, not started MySQL thread id 8232, OS thread handle 0x7efd16e26700, query id 946944899 localhost nodeny cleaning up ---TRANSACTION 7548675, not started MySQL thread id 1, OS thread handle 0x7efd6b07f700, query id 0 Waiting for requests -------- FILE I/O -------- I/O thread 0 state: waiting for completed aio requests (insert buffer thread) I/O thread 1 state: waiting for completed aio requests (log thread) I/O thread 2 state: waiting for completed aio requests (read thread) I/O thread 3 state: waiting for completed aio requests (read thread) I/O thread 4 state: waiting for completed aio requests (read thread) I/O thread 5 state: waiting for completed aio requests (read thread) I/O thread 6 state: waiting for completed aio requests (write thread) I/O thread 7 state: waiting for completed aio requests (write thread) I/O thread 8 state: waiting for completed aio requests (write thread) I/O thread 9 state: waiting for completed aio requests (write thread) Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] , ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0 Pending flushes (fsync) log: 0; buffer pool: 0 43077 OS file reads, 188349493 OS file writes, 176845559 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 11.14 writes/s, 10.28 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 3, seg size 5, 604 merges merged operations: insert 435, delete mark 420, delete 173 discarded operations: insert 0, delete mark 0, delete 0 2284.96 hash searches/s, 122.70 non-hash searches/s
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #17 : 05 Февраля 2018, 19:27:33 » |
|
--- LOG --- Log sequence number 96134894828 Log flushed up to 96134894828 Pages flushed up to 96130246034 Last checkpoint at 96130130080 Max checkpoint age 80826164 Checkpoint age target 78300347 Modified age 4648794 Checkpoint age 4764748 0 pending log writes, 0 pending chkp writes 162846807 log i/o's done, 8.14 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total memory allocated 1124597760; in additional pool allocated 0 Total memory allocated by read views 11064 Internal hash tables (constant factor + variable factor) Adaptive hash index 171231792 (18921928 + 152309864) Page hash 139112 (buffer pool 0 only) Dictionary cache 6901410 (4426736 + 2474674) File system 1047568 (812272 + 235296) Lock system 2680216 (2657176 + 23040) Recovery system 0 (0 + 0) Dictionary memory allocated 2474674 Buffer pool size 65528 Buffer pool size, bytes 1073610752 Free buffers 8195 Database pages 48037 Old database pages 17567 Modified db pages 882 Percent of dirty pages(LRU & free pages): 1.568 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 164426, not young 18029549 0.00 youngs/s, 0.00 non-youngs/s Pages read 42898, created 53237, written 19904797 0.00 reads/s, 0.00 creates/s, 2.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 48037, unzip_LRU len: 0 I/O sum[2496]:cur[0], unzip sum[0]:cur[0] ---------------------- INDIVIDUAL BUFFER POOL INFO ---------------------- ---BUFFER POOL 0 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1025 Database pages 5995 Old database pages 2192 Modified db pages 149 Percent of dirty pages(LRU & free pages): 2.122 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 24523, not young 3046416 0.00 youngs/s, 0.00 non-youngs/s Pages read 7120, created 6807, written 2686010 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 5995, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 1 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1025 Database pages 6004 Old database pages 2196 Modified db pages 115 Percent of dirty pages(LRU & free pages): 1.636 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 21411, not young 2189526 0.00 youngs/s, 0.00 non-youngs/s Pages read 4852, created 6728, written 2563605 0.00 reads/s, 0.00 creates/s, 0.14 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6004, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 2 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1025 Database pages 6008 Old database pages 2197 Modified db pages 53 Percent of dirty pages(LRU & free pages): 0.753 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 19196, not young 2396644 0.00 youngs/s, 0.00 non-youngs/s Pages read 5292, created 6950, written 1435746 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6008, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 3 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1024 Database pages 6003 Old database pages 2195 Modified db pages 163 Percent of dirty pages(LRU & free pages): 2.319 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 21799, not young 2526399 0.00 youngs/s, 0.00 non-youngs/s Pages read 4750, created 7109, written 3859919 0.00 reads/s, 0.00 creates/s, 1.29 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6003, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 4 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1024 Database pages 6011 Old database pages 2198 Modified db pages 87 Percent of dirty pages(LRU & free pages): 1.236 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 18698, not young 1585210 0.00 youngs/s, 0.00 non-youngs/s Pages read 4437, created 6690, written 2296132 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6011, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 5 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1024 Database pages 6016 Old database pages 2200 Modified db pages 97 Percent of dirty pages(LRU & free pages): 1.378 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 18843, not young 2221107 0.00 youngs/s, 0.00 non-youngs/s Pages read 6341, created 6186, written 2231536 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6016, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 6 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1024 Database pages 6001 Old database pages 2195 Modified db pages 126 Percent of dirty pages(LRU & free pages): 1.793 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 21144, not young 2031219 0.00 youngs/s, 0.00 non-youngs/s Pages read 5100, created 6494, written 2647712 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 6001, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] ---BUFFER POOL 7 Buffer pool size 8191 Buffer pool size, bytes 134201344 Free buffers 1024 Database pages 5999 Old database pages 2194 Modified db pages 92 Percent of dirty pages(LRU & free pages): 1.310 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 18812, not young 2033028 0.00 youngs/s, 0.00 non-youngs/s Pages read 5006, created 6273, written 2184137 0.00 reads/s, 0.00 creates/s, 0.57 writes/s Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 5999, unzip_LRU len: 0 I/O sum[312]:cur[0], unzip sum[0]:cur[0] -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue 0 read views open inside InnoDB 0 RW transactions active inside InnoDB 0 RO transactions active inside InnoDB 0 out of 1000 descriptors used Main thread process no. 4434, id 139625259583232, state: sleeping Number of rows inserted 31937246, updated 153406010, deleted 25269830, read 40621204230 3.86 inserts/s, 6.00 updates/s, 0.00 deletes/s, 4788.89 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 2 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================ Периодически, несколько строк, такое в логах раньше проскакивало и каких то ощутимых проблем небыло. Несколько раз в день, судя по логу. Ощутимых проблем нет, а по логу то уже есть. В последних ревизиях проблема решена?
|
|
|
Записан
|
|
|
|
kosmich
Пользователь
Карма: 1
Offline
Сообщений: 90
|
|
« Ответ #18 : 05 Февраля 2018, 20:16:39 » |
|
Несколько раз в день, судя по логу. Ощутимых проблем нет, а по логу то уже есть.
В логах эти разовые "проблемы" могут возникать по различным причинам, и не факт, что необходимо устранять эти единичные случаи. Вот если начнется такое "пачками" непрерывно, Вы поймете сразу, что проблема началась. С другой стороны, почему бы не применить новые процедуры, которые работают лучше чем предыдущие ?
|
|
|
Записан
|
|
|
|
gudwin
NoDeny
Пользователь
Карма: 0
Offline
Сообщений: 85
|
|
« Ответ #19 : 05 Февраля 2018, 20:21:05 » |
|
InnoDB
===================================== 2018-02-05 19:21:42 7efd0e60b700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 7 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 5554631 srv_active, 0 srv_shutdown, 10469 srv_idle srv_master_thread log flush and writes: 5564818 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 13794285 OS WAIT ARRAY INFO: signal count 14003827 Mutex spin waits 21527290, rounds 308023037, OS waits 9410597 RW-shared spins 4481949, rounds 130026393, OS waits 4275545 RW-excl spins 261627, rounds 4811527, OS waits 73024 Spin rounds per wait: 14.31 mutex, 29.01 RW-shared, 18.39 RW-excl ------------------------ LATEST DETECTED DEADLOCK ------------------------ 2018-02-05 19:16:27 7efd28157700 *** (1) TRANSACTION: TRANSACTION 512587367, ACTIVE 0 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 3 lock struct(s), heap size 1184, 2 row lock(s) MySQL thread id 8358, OS thread handle 0x7efd6591f700, query id 946881457 172.19.0.1 nodeny updating UPDATE ip_pool SET `release` = UNIX_TIMESTAMP() + 300 WHERE ip = INET_ATON( NAME_CONST('usr_ip',_latin1'10.193.2.1' COLLATE 'latin1_swedish_ci')) AND type = 'dynamic' LIMIT 1 *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587367 lock_mode X locks rec but not gap waiting lock hold time 0 wait time before grant 0 *** (2) TRANSACTION: TRANSACTION 512587358, ACTIVE 0 sec fetching rows mysql tables in use 3, locked 5 31 lock struct(s), heap size 6544, 15050 row lock(s) MySQL thread id 8360, OS thread handle 0x7efd28157700, query id 946881408 172.19.0.1 nodeny Sending data UPDATE ip_pool SET uid = NAME_CONST('user_id',812), `release` = UNIX_TIMESTAMP() + 300 WHERE id = (SELECT id FROM ( (SELECT id, uid FROM ip_pool WHERE uid = 0 AND type = 'dynamic' AND realip = IF( NAME_CONST('real_ip',NULL)>0,1,0) LIMIT 1) UNION (SELECT id, uid FROM ip_pool WHERE uid = NAME_CONST('user_id',812) AND type = 'dynamic' AND realip = IF( NAME_CONST('real_ip',NULL)>0,1,0) LIMIT 1) ) AS tbl ORDER BY uid DESC LIMIT 1) *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587358 lock_mode X locks rec but not gap lock hold time 0 wait time before grant 0 *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 856 page no 11 n bits 440 index `PRIMARY` of table `nodeny`.`ip_pool` trx table locks 1 total table locks 2 trx id 512587358 lock_mode X waiting lock hold time 0 wait time before grant 0 *** WE ROLL BACK TRANSACTION (1) ------------ TRANSACTIONS ------------ Trx id counter 512620496 Purge done for trx's n:o < 512620495 undo n:o < 0 state: running but idle History list length 41 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0, not started MySQL thread id 3053566, OS thread handle 0x7efd0e60b700, query id 946945312 localhost 127.0.0.1 root init show engine innodb STATUS ---TRANSACTION 0, not started MySQL thread id 3053518, OS thread handle 0x7efd067f5700, query id 946938247 localhost 127.0.0.1 mailuser cleaning up ---TRANSACTION 512615340, not started MySQL thread id 3036125, OS thread handle 0x7efd0c150700, query id 946935274 172.19.0.12 nodeny cleaning up ---TRANSACTION 512618190, not started MySQL thread id 3036106, OS thread handle 0x7efd0c39c700, query id 946941130 172.19.0.12 nodeny cleaning up ---TRANSACTION 512609773, not started MySQL thread id 3033913, OS thread handle 0x7efcfb36c700, query id 946923378 localhost zabbix cleaning up ---TRANSACTION 512615302, not started MySQL thread id 3031967, OS thread handle 0x7efd16dc4700, query id 946935206 localhost zabbix cleaning up ---TRANSACTION 512620471, not started MySQL thread id 3012801, OS thread handle 0x7efd658bd700, query id 946945250 localhost nodeny cleaning up ---TRANSACTION 512620361, not started MySQL thread id 2991498, OS thread handle 0x7efd0c08c700, query id 946944952 localhost zabbix cleaning up ---TRANSACTION 512617219, not started MySQL thread id 2991436, OS thread handle 0x7efd0e5da700, query id 946938582 localhost zabbix cleaning up ---TRANSACTION 512617316, not started MySQL thread id 2942979, OS thread handle 0x7efd0c11f700, query id 946938806 172.19.0.12 nodeny cleaning up ---TRANSACTION 512615152, not started MySQL thread id 2936489, OS thread handle 0x7efd06452700, query id 946934803 172.19.0.12 nodeny cleaning up ---TRANSACTION 512618467, not started MySQL thread id 2925925, OS thread handle 0x7efd0e578700, query id 946941680 localhost zabbix cleaning up ---TRANSACTION 512620345, not started MySQL thread id 2307611, OS thread handle 0x7efd67567700, query id 946945229 localhost nodeny cleaning up ---TRANSACTION 512612607, not started MySQL thread id 2184255, OS thread handle 0x7efd0e63c700, query id 946929535 localhost zabbix cleaning up ---TRANSACTION 512600694, not started MySQL thread id 2183835, OS thread handle 0x7efd16c9e700, query id 946905732 localhost zabbix cleaning up ---TRANSACTION 512620088, not started MySQL thread id 2183808, OS thread handle 0x7efd0e483700, query id 946944200 localhost zabbix cleaning up ---TRANSACTION 512606531, not started MySQL thread id 2183767, OS thread handle 0x7efd65ad8700, query id 946916906 localhost zabbix cleaning up ---TRANSACTION 512594797, not started MySQL thread id 2183746, OS thread handle 0x7efd5adc7700, query id 946894513 localhost zabbix cleaning up ---TRANSACTION 512620358, not started MySQL thread id 493646, OS thread handle 0x7efd67472700, query id 946944939 localhost zabbix cleaning up ---TRANSACTION 512041425, not started MySQL thread id 493697, OS thread handle 0x7efd16f1b700, query id 946940708 localhost zabbix cleaning up ---TRANSACTION 512615449, not started MySQL thread id 493639, OS thread handle 0x7efd65b9c700, query id 946936160 localhost zabbix cleaning up ---TRANSACTION 512620289, not started MySQL thread id 493642, OS thread handle 0x7efd67505700, query id 946944749 localhost zabbix cleaning up ---TRANSACTION 512620421, not started MySQL thread id 493641, OS thread handle 0x7efd16d00700, query id 946945113 localhost zabbix cleaning up ---TRANSACTION 512620464, not started MySQL thread id 493640, OS thread handle 0x7efd16d62700, query id 946945233 localhost zabbix cleaning up ---TRANSACTION 512361987, not started MySQL thread id 493647, OS thread handle 0x7efd65b3a700, query id 946945130 localhost zabbix cleaning up ---TRANSACTION 512036270, not started MySQL thread id 493661, OS thread handle 0x7efd68440700, query id 946945195 localhost zabbix cleaning up ---TRANSACTION 512620057, not started MySQL thread id 493657, OS thread handle 0x7efd6afec700, query id 946944120 localhost zabbix cleaning up ---TRANSACTION 512620420, not started MySQL thread id 493644, OS thread handle 0x7efd16c6d700, query id 946945108 localhost zabbix cleaning up ---TRANSACTION 510058043, not started MySQL thread id 493643, OS thread handle 0x7efd16d93700, query id 946945287 localhost zabbix cleaning up ---TRANSACTION 512620387, not started MySQL thread id 8968, OS thread handle 0x7efd65a45700, query id 946945019 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620433, not started MySQL thread id 8330, OS thread handle 0x7efd65a14700, query id 946945131 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620427, not started MySQL thread id 8331, OS thread handle 0x7efd16df5700, query id 946945114 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620419, not started MySQL thread id 8332, OS thread handle 0x7efd16fae700, query id 946945091 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620410, not started MySQL thread id 8333, OS thread handle 0x7efd16eb9700, query id 946945072 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620404, not started MySQL thread id 8334, OS thread handle 0x7efd659b2700, query id 946945055 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620398, not started MySQL thread id 8335, OS thread handle 0x7efd16f4c700, query id 946945039 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620392, not started MySQL thread id 8336, OS thread handle 0x7efd16eea700, query id 946945020 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620385, not started MySQL thread id 8337, OS thread handle 0x7efd65a76700, query id 946945002 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620379, not started MySQL thread id 8338, OS thread handle 0x7efd16e57700, query id 946944986 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620373, not started MySQL thread id 8339, OS thread handle 0x7efd280c4700, query id 946944970 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620367, not started MySQL thread id 8340, OS thread handle 0x7efd16f7d700, query id 946944953 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620357, not started MySQL thread id 8341, OS thread handle 0x7efd65b09700, query id 946944920 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620351, not started MySQL thread id 8342, OS thread handle 0x7efd28126700, query id 946944904 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620343, not started MySQL thread id 8343, OS thread handle 0x7efd28062700, query id 946944881 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620337, not started MySQL thread id 8344, OS thread handle 0x7efd6585b700, query id 946944864 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620336, not started MySQL thread id 8345, OS thread handle 0x7efd5ad34700, query id 946944849 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620325, not started MySQL thread id 8346, OS thread handle 0x7efd65b6b700, query id 946944833 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620319, not started MySQL thread id 8347, OS thread handle 0x7efd5adf8700, query id 946944817 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620313, not started MySQL thread id 8348, OS thread handle 0x7efd5ad96700, query id 946944801 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620307, not started MySQL thread id 8349, OS thread handle 0x7efd5acd2700, query id 946944783 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620301, not started MySQL thread id 8350, OS thread handle 0x7efd16fdf700, query id 946944767 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620295, not started MySQL thread id 8351, OS thread handle 0x7efd5ac3f700, query id 946944750 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620288, not started MySQL thread id 8352, OS thread handle 0x7efd280f5700, query id 946944729 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620495, not started MySQL thread id 8353, OS thread handle 0x7efd5aca1700, query id 946945288 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620488, not started MySQL thread id 8354, OS thread handle 0x7efd5ad65700, query id 946945267 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620479, not started MySQL thread id 8355, OS thread handle 0x7efd28031700, query id 946945251 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620470, not started MySQL thread id 8356, OS thread handle 0x7efd5ac70700, query id 946945234 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620463, not started MySQL thread id 8357, OS thread handle 0x7efd6588c700, query id 946945212 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620457, not started MySQL thread id 8358, OS thread handle 0x7efd6591f700, query id 946945196 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620451, not started MySQL thread id 8359, OS thread handle 0x7efd5ad03700, query id 946945179 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620445, not started MySQL thread id 8360, OS thread handle 0x7efd28157700, query id 946945163 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620439, not started MySQL thread id 8361, OS thread handle 0x7efd659e3700, query id 946945147 172.19.0.1 nodeny cleaning up ---TRANSACTION 512620344, not started MySQL thread id 8232, OS thread handle 0x7efd16e26700, query id 946944899 localhost nodeny cleaning up ---TRANSACTION 7548675, not started MySQL thread id 1, OS thread handle 0x7efd6b07f700, query id 0 Waiting for requests -------- FILE I/O -------- I/O thread 0 state: waiting for completed aio requests (insert buffer thread) I/O thread 1 state: waiting for completed aio requests (log thread) I/O thread 2 state: waiting for completed aio requests (read thread) I/O thread 3 state: waiting for completed aio requests (read thread) I/O thread 4 state: waiting for completed aio requests (read thread) I/O thread 5 state: waiting for completed aio requests (read thread) I/O thread 6 state: waiting for completed aio requests (write thread) I/O thread 7 state: waiting for completed aio requests (write thread) I/O thread 8 state: waiting for completed aio requests (write thread) I/O thread 9 state: waiting for completed aio requests (write thread) Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] , ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0 Pending flushes (fsync) log: 0; buffer pool: 0 43077 OS file reads, 188349493 OS file writes, 176845559 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 11.14 writes/s, 10.28 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 3, seg size 5, 604 merges merged operations: insert 435, delete mark 420, delete 173 discarded operations: insert 0, delete mark 0, delete 0 2284.96 hash searches/s, 122.70 non-hash searches/s
ссори не досмотрел, вам поможет то что описано в начале темы
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #20 : 05 Февраля 2018, 21:03:14 » |
|
вам поможет то что описано в начале темы При обновлении оно само добавится или нужно в ручную процедуры менять? С другой стороны, почему бы не применить новые процедуры, которые работают лучше чем предыдущие ? Совершенно верно Смотрю там измененная процедура get_ip. А если у меня используется get_ip_by_tag?
|
|
|
Записан
|
|
|
|
Warlock
NoDeny
Старожил
Карма: 8
Offline
Сообщений: 367
|
|
« Ответ #21 : 05 Февраля 2018, 21:33:15 » |
|
вам поможет то что описано в начале темы При обновлении оно само добавится или нужно в ручную процедуры менять? С другой стороны, почему бы не применить новые процедуры, которые работают лучше чем предыдущие ? Совершенно верно Смотрю там измененная процедура get_ip. А если у меня используется get_ip_by_tag? В процедуре только время увеличнно с 300 до 3600, хотя ее можно и не менее ять. А функцию руками создать.. perl install.pl -x тебе напомнит об этом
|
|
|
Записан
|
|
|
|
gudwin
NoDeny
Пользователь
Карма: 0
Offline
Сообщений: 85
|
|
« Ответ #22 : 05 Февраля 2018, 21:38:16 » |
|
|
|
|
Записан
|
|
|
|
Sidius
|
|
« Ответ #23 : 14 Февраля 2018, 17:11:17 » |
|
Время от времени я вижу жалобы на то, что бывают разного рода глюки с выдачей динамических ip. Я тут хорошо покрутил все и кажется понял в чем проблема. На самом деле основные проблемы 2:
Правда чтоле? ))))) А когда я несколько лет назад писал что есть проблемы с динамической выдачей ИП меня все называли рукожопым оленем.
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #24 : 26 Февраля 2018, 12:23:25 » |
|
Стас помоги разобраться. На новом брасе ловлю дубликаты ip, все изменения наложены из данной темы. Для выдачи используется get_ip_by_tag из wiki.
На брасе есть dhcp и pppoe, соответственно есть две radreply, radupdate, radcheck в которых вызывается get_ip_by_tag.
Так вот есть проблема, звонит клиент по pppoe говорит не работает, смотрю его ip, который светится в его учетке, пробиваю кому он еще может выдан и вижу что выдан по dhcp пока непривязанному клиенту, может быть и другие есть варианты когда выдается дубликат, но пока только такой увидел.
Или когда по dhcp выдает ip не привязанному клиенту, ip не фиксируется как занятый и выдается повторно? Как правильно тогда организовать выдачу ip по логике системы?
|
|
|
Записан
|
|
|
|
kosmich
Пользователь
Карма: 1
Offline
Сообщений: 90
|
|
« Ответ #25 : 26 Февраля 2018, 17:09:22 » |
|
Стас помоги разобраться. На новом брасе ловлю дубликаты ip, все изменения наложены из данной темы. Для выдачи используется get_ip_by_tag из wiki.
На брасе есть dhcp и pppoe, соответственно есть две radreply, radupdate, radcheck в которых вызывается get_ip_by_tag.
Так вот есть проблема, звонит клиент по pppoe говорит не работает, смотрю его ip, который светится в его учетке, пробиваю кому он еще может выдан и вижу что выдан по dhcp пока непривязанному клиенту, может быть и другие есть варианты когда выдается дубликат, но пока только такой увидел.
Или когда по dhcp выдает ip не привязанному клиенту, ip не фиксируется как занятый и выдается повторно? Как правильно тогда организовать выдачу ip по логике системы?
У тебя пулы с тегами созданы в биллинге ? И лучше создай свою тему, чтоб эту не захламлять, у тебя вероятней всего частный случай. Процедуры у тебя какие ? Те что Стас указал в соседней теме или твои ? PS: И это у тебя не дубликаты, а левые айпи выдаются абонентам. Дубликаты - это когда один айпи выдан двоим абонентам.
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #26 : 26 Февраля 2018, 17:24:41 » |
|
Да у меня один большой динамический пул с тегом под данный брас.
Процедуры по выдаче ip у меня стандартные, с поставки и вики.
Как это не дубликаты? Есть две разные сессии на брасе у которых один ip. Биллинг их же выдал не я самостоятельно присвоил.
|
|
|
Записан
|
|
|
|
kosmich
Пользователь
Карма: 1
Offline
Сообщений: 90
|
|
« Ответ #27 : 26 Февраля 2018, 18:28:31 » |
|
Да у меня один большой динамический пул с тегом под данный брас.
Процедуры по выдаче ip у меня стандартные, с поставки и вики.
Как это не дубликаты? Есть две разные сессии на брасе у которых один ip. Биллинг их же выдал не я самостоятельно присвоил.
Уточняю, когда двум пппое абонентам выдан один айпи. Создай разные пулы, для пппое и дхцп абонентов. Покажи какие процедуры используешь.
|
|
|
Записан
|
|
|
|
fet4
|
|
« Ответ #28 : 26 Февраля 2018, 18:35:23 » |
|
Какую именно показать тебе?
|
|
|
Записан
|
|
|
|
kosmich
Пользователь
Карма: 1
Offline
Сообщений: 90
|
|
« Ответ #29 : 26 Февраля 2018, 18:44:25 » |
|
Какую именно показать тебе?
Все. И это не только мне. У меня теги тоже есть, но еще на третем не обкатывал.
|
|
|
Записан
|
|
|
|
|