Commit d709e1ad authored by Kirill Smelkov's avatar Kirill Smelkov

X test client + stats for mariadb while NEO running with load or with load+backup

parent 13911ca3
t/1.png

88.7 KB

Count: 1919 Time=0.32s (619s) Lock=0.00s (0s) Rows_sent=0.4 (799), Rows_examined=0.4 (799), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM trans
WHERE `partition` = N
AND tid >= N AND tid <= N
ORDER BY tid ASC LIMIT N
Count: 110802 Time=0.00s (52s) Lock=0.00s (3s) Rows_sent=1.0 (110802), Rows_examined=2.1 (229296), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid, compression, data.hash, value, value_tid FROM obj LEFT JOIN data ON (obj.data_id = data.id) WHERE `partition` = N AND oid = N AND tid < N ORDER BY tid DESC LIMIT N
Count: 3662 Time=0.01s (43s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
commit
Count: 2413 Time=0.00s (11s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.5 (1126), Rows_affected=0.3 (794), root[root]@localhost
INSERT INTO trans SELECT * FROM ttrans WHERE tid=N
Count: 113198 Time=0.00s (11s) Lock=0.00s (2s) Rows_sent=0.0 (47), Rows_examined=0.9 (105484), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N AND tid>N ORDER BY tid LIMIT N
Count: 2413 Time=0.00s (9s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.5 (1126), Rows_affected=0.3 (794), root[root]@localhost
DELETE FROM ttrans WHERE tid=N
Count: 794 Time=0.00s (3s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=1.1 (836), Rows_affected=1.0 (794), root[root]@localhost
UPDATE ttrans SET tid=N WHERE ttid=N LIMIT N
Count: 2275 Time=0.00s (3s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=1.0 (2180), root[root]@localhost
INSERT INTO data VALUES (NULL, 'S', N, 'S')
Count: 3472 Time=0.00s (2s) Lock=0.00s (0s) Rows_sent=0.8 (2808), Rows_examined=0.8 (2808), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N ORDER BY tid DESC LIMIT N
Count: 2413 Time=0.00s (1s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.9 (2286), Rows_affected=0.9 (2286), root[root]@localhost
INSERT INTO obj SELECT `partition`, oid, N, data_id, value_tid FROM tobj WHERE tid=N
Count: 2179 Time=0.35s (772s) Lock=0.00s (0s) Rows_sent=0.6 (1374), Rows_examined=0.6 (1374), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM trans
WHERE `partition` = N
AND tid >= N AND tid <= N
ORDER BY tid ASC LIMIT N
Count: 118277 Time=0.00s (68s) Lock=0.00s (3s) Rows_sent=1.0 (118277), Rows_examined=2.1 (246683), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid, compression, data.hash, value, value_tid FROM obj LEFT JOIN data ON (obj.data_id = data.id) WHERE `partition` = N AND oid = N AND tid < N ORDER BY tid DESC LIMIT N
Count: 4270 Time=0.01s (50s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
commit
Count: 2838 Time=0.01s (14s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.5 (1313), Rows_affected=0.3 (936), root[root]@localhost
INSERT INTO trans SELECT * FROM ttrans WHERE tid=N
Count: 122392 Time=0.00s (12s) Lock=0.00s (2s) Rows_sent=0.0 (507), Rows_examined=0.7 (88967), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N AND tid>N ORDER BY tid LIMIT N
Count: 2838 Time=0.00s (12s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.5 (1313), Rows_affected=0.3 (936), root[root]@localhost
DELETE FROM ttrans WHERE tid=N
Count: 936 Time=0.00s (4s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=1.1 (989), Rows_affected=1.0 (936), root[root]@localhost
UPDATE ttrans SET tid=N WHERE ttid=N LIMIT N
Count: 2797 Time=0.00s (4s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=1.0 (2713), root[root]@localhost
INSERT INTO data VALUES (NULL, 'S', N, 'S')
Count: 4267 Time=0.00s (3s) Lock=0.00s (0s) Rows_sent=0.8 (3356), Rows_examined=0.8 (3356), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N ORDER BY tid DESC LIMIT N
Count: 2838 Time=0.00s (2s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=1.0 (2803), Rows_affected=1.0 (2803), root[root]@localhost
INSERT INTO obj SELECT `partition`, oid, N, data_id, value_tid FROM tobj WHERE tid=N
Count: 979463 Time=0.00s (393s) Lock=0.00s (30s) Rows_sent=1.0 (979463), Rows_examined=2.0 (1999173), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid, compression, data.hash, value, value_tid FROM obj LEFT JOIN data ON (obj.data_id = data.id) WHERE `partition` = N AND oid = N AND tid < N ORDER BY tid DESC LIMIT N
Count: 8115 Time=0.01s (101s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
commit
Count: 979815 Time=0.00s (94s) Lock=0.00s (20s) Rows_sent=0.0 (163), Rows_examined=9.9 (9741734), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N AND tid>N ORDER BY tid LIMIT N
Count: 5755 Time=0.00s (27s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.7 (3868), Rows_affected=0.4 (2093), root[root]@localhost
INSERT INTO trans SELECT * FROM ttrans WHERE tid=N
Count: 5755 Time=0.00s (24s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.7 (3868), Rows_affected=0.4 (2093), root[root]@localhost
DELETE FROM ttrans WHERE tid=N
Count: 8 Time=1.51s (12s) Lock=0.00s (0s) Rows_sent=3.0 (24), Rows_examined=3.0 (24), Rows_affected=0.0 (0), root[root]@localhost
SELECT `partition`, MAX(tid) FROM trans GROUP BY `partition`
Count: 2094 Time=0.00s (9s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=1.3 (2652), Rows_affected=1.0 (2090), root[root]@localhost
UPDATE ttrans SET tid=N WHERE ttid=N LIMIT N
Count: 5670 Time=0.00s (7s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.9 (5000), root[root]@localhost
INSERT INTO data VALUES (NULL, 'S', N, 'S')
Count: 36 Time=0.19s (6s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
DELETE FROM trans WHERE `partition`=N
Count: 7755 Time=0.00s (4s) Lock=0.00s (0s) Rows_sent=0.8 (6555), Rows_examined=0.8 (6555), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N ORDER BY tid DESC LIMIT N
Count: 553125 Time=0.00s (234s) Lock=0.00s (17s) Rows_sent=1.0 (553125), Rows_examined=2.1 (1139491), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid, compression, data.hash, value, value_tid FROM obj LEFT JOIN data ON (obj.data_id = data.id) WHERE `partition` = N AND oid = N AND tid < N ORDER BY tid DESC LIMIT N
Count: 553365 Time=0.00s (52s) Lock=0.00s (12s) Rows_sent=0.0 (150), Rows_examined=3.3 (1813748), Rows_affected=0.0 (0), root[root]@localhost
SELECT tid FROM obj WHERE `partition`=N AND oid=N AND tid>N ORDER BY tid LIMIT N
Count: 4014 Time=0.01s (50s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
commit
Count: 17 Time=1.49s (25s) Lock=0.00s (0s) Rows_sent=3.0 (51), Rows_examined=3.0 (51), Rows_affected=0.0 (0), root[root]@localhost
SELECT `partition`, MAX(tid) FROM trans GROUP BY `partition`
Count: 144 Time=0.16s (23s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.0 (0), root[root]@localhost
DELETE FROM trans WHERE `partition`=N
Count: 2731 Time=0.00s (12s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.6 (1680), Rows_affected=0.4 (1028), root[root]@localhost
INSERT INTO trans SELECT * FROM ttrans WHERE tid=N
Count: 2728 Time=0.00s (11s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.6 (1677), Rows_affected=0.4 (1028), root[root]@localhost
DELETE FROM ttrans WHERE tid=N
Count: 1 Time=6.32s (6s) Lock=0.00s (0s) Rows_sent=1.0 (1), Rows_examined=10655437.0 (10655437), Rows_affected=0.0 (0), root[root]@localhost
select * from trans where tid=N
Count: 1031 Time=0.00s (4s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=1.2 (1234), Rows_affected=1.0 (1027), root[root]@localhost
UPDATE ttrans SET tid=N WHERE ttid=N LIMIT N
Count: 2954 Time=0.00s (3s) Lock=0.00s (0s) Rows_sent=0.0 (0), Rows_examined=0.0 (0), Rows_affected=0.9 (2568), root[root]@localhost
INSERT INTO data VALUES (NULL, 'S', N, 'S')
#!/usr/bin/env python
from ZODB import DB
from neo.client.Storage import Storage
from neo.lib import logging
from time import sleep
#etc1 = '/srv/slapgrid/slappart9/srv/runner/instance/slappart1/etc'
etc1 = 'etc1'
def main():
logging.backlog(max_size=None, max_packet=None) # log everything & without bufferring
kw = { 'master_nodes': '[2001:67c:1254:e:20::3977]:2051', # M on webr-wneo-*1*
'name': 'woelfel-munich-clone',
'logfile': 'x.log',
'ca': etc1 + '/ca.crt',
'cert': etc1 + '/neo.crt',
'key': etc1 + '/neo.key',
}
stor = Storage(**kw)
db = DB(stor)
conn = db.open()
root = conn.root()
print root
while 1:
sleep(1)
if __name__ == '__main__':
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment