码迷,mamicode.com
首页 > 系统相关 > 详细

keepalived+lvs+magent+memcached集群高可用方案

时间:2015-06-02 18:14:28      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:keepalived lvs magent memcached



root  25277     1  0 11:01 ?        Ssl    0:00 /opt/root/memcached-1.4.13/memcached -m 512m -p 11211 -d

root      1273     1  0 15:41 ?        Ssl    0:00 /opt/root/memcached-1.4.13/memcached -m 512m -p 11212 -d -u root

root      1290     1  0 15:41 ?        Ssl    0:00 /opt/root/memcached-1.4.13/memcached -m 512m -p 11213 -d -u root

root      1309     1  0 15:42 ?        Ss     0:00 /opt/root/magent_offline/magent -p 11311 -s 127.0.0.1:11211 -s 127.0.0.1:11212 -b 127.0.0.1:11213

root      1405     1  0 15:45 ?        Ss     0:00 /opt/root/magent_offline/magent -p 11411 -s 127.0.0.1:11211 -s 127.0.0.1:11212 -b 127.0.0.1:11213

[root@192_168_1_81 ~]# telnet 127.0.0.1 11311

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

stats

memcached agent v0.6

matrix 1 -> 127.0.0.1:11211, pool size 1

matrix 2 -> 127.0.0.1:11212, pool size 1

END

set bk1 0 0 4

1111

STORED

set bk2 0 0 4

2222

STORED

set bk3 0 0 4

3333

STORED

qu^H^H^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11411

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

stats

memcached agent v0.6

matrix 1 -> 127.0.0.1:11211, pool size 0

matrix 2 -> 127.0.0.1:11212, pool size 0

END

set bk4 0 0 4

4444

STORED

set bk5 0 0 4

5555

STORED

set bk6 0 0 4

6666

STORED

^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11311

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

get bk4

VALUE bk4 0 4

4444

END

get bk5

VALUE bk5 0 4

5555

END

get bk6

VALUE bk6 0 4

6666

END

get bk1

VALUE bk1 0 4

1111

END

get bk2

VALUE bk2 0 4

2222

END

get bk3

VALUE bk3 0 4

3333

END

=^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11411

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

get bk1

VALUE bk1 0 4

1111

END

get bk2

VALUE bk2 0 4

2222

END

get bk3

VALUE bk3 0 4

3333

END

get bk4

VALUE bk4 0 4

4444

END

get bk5

VALUE bk5 0 4

5555

END

get bk6

VALUE bk6 0 4

6666

END

^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11211

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

get bk1

END

get bk2

VALUE bk2 0 4

2222

END

get bk3

END

get bk4

VALUE bk4 0 4

4444

END

get bk5

END

get bk6

VALUE bk6 0 4

6666

END

^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11212

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

get bk1

VALUE bk1 0 4

1111

END

get bk2

END

get bk3

VALUE bk3 0 4

3333

END

get bk4

END

get bk5

VALUE bk5 0 4

5555

END

get bk6

END

^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# telnet 127.0.0.1 11213

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is ‘^]‘.

get bk1

VALUE bk1 0 4

1111

END

get bk2

VALUE bk2 0 4

2222

END

get bk3

VALUE bk3 0 4

3333

END

get bk4

VALUE bk4 0 4

4444

END

get bk5

VALUE bk5 0 4

5555

END

get bk6

VALUE bk6 0 4

6666

END

^]

telnet> quit

Connection closed.

[root@192_168_1_81 ~]# 

本文出自 “倔强人生” 博客,转载请与作者联系!

keepalived+lvs+magent+memcached集群高可用方案

标签:keepalived lvs magent memcached

原文地址:http://talen.blog.51cto.com/4581928/1657530

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!