일요일, 5월 26, 2024
HomeLinuxmemcache #2 shutdown 시에 대한 Test

memcache #2 shutdown 시에 대한 Test

memcache #1, memcache #2 각 set 후 memcache #2 shuwdown에 대한 테스트

1.memcache #1 server start

/usr/local/memcached_rep/bin/memcached -U 0 -p 11211 -d -v -m 30720 -u root -l 0.0.0.0 -P /usr/local/memcached_rep/memcachedrep.pid -c 32767 -x 192.168.56.40
replication: connect (peer=192.168.56.40:11212)
replication: marugoto copying
replication: close
replication: listen
replication: accept

2.telnet 192.168.56.40 11211

Trying 192.168.56.40...
Connected to 192.168.56.40.
Escape character is '^]'.
stats
STAT pid 1367
STAT uptime 22
STAT time 1423186282
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.000908
STAT rusage_system 0.001055
STAT curr_items 0
STAT total_items 0
STAT bytes 0
STAT curr_connections 5
STAT total_connections 10
STAT connection_structures 6
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 0
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 7
STAT bytes_written 0
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8191
STAT repcached_wdata 0
STAT repcached_wsize 2048
END

3.memcache #2 server start

/usr/local/memcached_rep/bin/memcached -U 0 -p 11211 -d -v -m 30720 -u root -l 0.0.0.0 -P /usr/local/memcached_rep/memcachedrep.pid -c 32767 -x 192.168.56.41
replication: connect (peer=192.168.56.41:11212)
replication: marugoto copying
replication: start

telnet 192.168.56.41 11211

Trying 192.168.56.41...
Connected to 192.168.56.41.
Escape character is '^]'.
stats
STAT pid 1360
STAT uptime 152
STAT time 1423186414
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.004571
STAT rusage_system 0.003886
STAT curr_items 0
STAT total_items 0
STAT bytes 0
STAT curr_connections 5
STAT total_connections 6
STAT connection_structures 6
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 0
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 21
STAT bytes_written 0
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8192
STAT repcached_wdata 0
STAT repcached_wsize 2048
END

4. memcache #1 , #2 set 10000

memcache #1 stats

stats
STAT pid 1367
STAT uptime 490
STAT time 1423186750
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.132743
STAT rusage_system 0.502825
STAT curr_items 20000
STAT total_items 20000
STAT bytes 2600000
STAT curr_connections 5
STAT total_connections 12
STAT connection_structures 7
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 20000
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 1808908
STAT bytes_written 80672
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8154
STAT repcached_wdata 0
STAT repcached_wsize 4096
END

memcache #2 stats

stats
STAT pid 1360
STAT uptime 492
STAT time 1423186754
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.142670
STAT rusage_system 0.355080
STAT curr_items 20000
STAT total_items 20000
STAT bytes 2600000
STAT curr_connections 5
STAT total_connections 7
STAT connection_structures 7
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 20000
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 1808922
STAT bytes_written 80673
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8154
STAT repcached_wdata 0
STAT repcached_wsize 4096
END

6. memcache #2 shutdown 시

memcache #1 stats

stats
STAT pid 1367
STAT uptime 859
STAT time 1423187119
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.139523
STAT rusage_system 0.515428
STAT curr_items 20000
STAT total_items 20000
STAT bytes 2600000
STAT curr_connections 3
STAT total_connections 13
STAT connection_structures 7
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 20000
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 1808915
STAT bytes_written 81373
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8154
STAT repcached_wdata 0
STAT repcached_wsize 0
END

7. memcache #2 인스턴스 재기동후

/usr/local/memcached_rep/bin/memcached -U 0 -p 11211 -d -v -m 30720 -u root -l 0.0.0.0 -P /usr/local/memcached_rep/memcachedrep.pid -c 32767 -x 192.168.56.40
webadm@ubuntu:~$ Could not open the pid file /usr/local/memcached_rep/memcachedrep.pid for writing
replication: connect (peer=192.168.56.40:11212)
replication: marugoto copying
replication: start

8. memcache #2 stats
telnet 192.168.56.41 11211

Trying 192.168.56.41...
Connected to 192.168.56.41.
Escape character is '^]'.
stats
STAT pid 1443
STAT uptime 115
STAT time 1423187256
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.003629
STAT rusage_system 0.003544
STAT curr_items 0           ### 재기동후 items 0으로 초기화됨
STAT total_items 0
STAT bytes 0
STAT curr_connections 5
STAT total_connections 6
STAT connection_structures 6
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 0
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 21
STAT bytes_written 0
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8192
STAT repcached_wdata 0
STAT repcached_wsize 2048
END

9. memcache #1 stats

stats
STAT pid 1367
STAT uptime 1013
STAT time 1423187273
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 0.152309
STAT rusage_system 0.519937
STAT curr_items 0           ### 재기동후 items 0으로 초기화됨
STAT total_items 20000
STAT bytes 0
STAT curr_connections 5
STAT total_connections 16
STAT connection_structures 7
STAT cmd_flush 0
STAT cmd_get 0
STAT cmd_set 20000
STAT get_hits 0
STAT get_misses 0
STAT evictions 0
STAT bytes_read 1808922
STAT bytes_written 82071
STAT limit_maxbytes 32212254720
STAT threads 2
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT replication MASTER
STAT repcached_version 2.2.1
STAT repcached_qi_free 8154
STAT repcached_wdata 0
STAT repcached_wsize 2048
END
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular