这是一个创建于 3750 天前的主题,其中的信息可能已经有所发展或是发生改变。
觉得puppet太复杂,于是就在一台128MB的VPS上搭了saltstack的master来管理几台VPS
saltstack是基于python的,128MB的机子上内存已经所剩无几
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 303 0.0 0.9 2980 1248 ? Ss 13:43 0:00 su -c salt-master
root 306 0.0 11.4 41952 15016 ? Sl 13:43 0:00 /usr/bin/python /usr/bin/salt-master
root 365 0.0 16.3 57072 21416 ? Sl 13:43 0:00 /usr/bin/python /usr/bin/salt-master
root 368 0.0 9.1 41952 11932 ? Sl 13:43 0:00 /usr/bin/python /usr/bin/salt-master
root 369 0.0 8.9 41952 11768 ? Sl 13:43 0:00 /usr/bin/python /usr/bin/salt-master
root 370 0.1 17.1 141312 22508 ? Sl 13:43 0:00 /usr/bin/python /usr/bin/salt-master
有没什么办法减少这类python程序的内存使用量?(还有denyhost等)
或者大家有没什么轻量级的运维工具推荐
12 条回复 • 1970-01-01 08:00:00 +08:00
![ihacku](https://cdn.v2ex.com/avatar/c8cd/63e1/3073_normal.png?m=1675398764) |
|
1
ihacku 2014-03-19 18:03:30 +08:00
|
![myw58](https://cdn.v2ex.com/avatar/68ff/0c6e/17303_normal.png?m=1394721139) |
|
2
myw58 2014-03-19 18:05:22 +08:00
试试ansible,走ssh,无需客户端.
|
![Tink](https://cdn.v2ex.com/avatar/64d6/6ac2/51170_normal.png?m=1684830587) |
|
4
Tink 2014-03-19 19:33:36 +08:00
|
![9hills](https://cdn.v2ex.com/avatar/d254/c8a0/2354_normal.png?m=1335016813) |
|
5
9hills 2014-03-19 19:48:13 +08:00 via iPad
@ caizixian ansible 没有常驻进程,master 和 client都没有 小规模足够了
|
![hhkbp2](https://cdn.v2ex.com/avatar/6077/a0d6/48952_normal.png?m=1492432261) |
|
6
hhkbp2 2014-03-19 19:59:39 +08:00
ansible也是python的。。。
|
![openroc](https://cdn.v2ex.com/avatar/6c55/e753/21543_normal.png?m=1407897772) |
|
7
openroc 2014-03-19 22:35:16 +08:00
fabric
|
![loser](https://cdn.v2ex.com/avatar/03ea/9067/12822_normal.png?m=1370413233) |
|
8
loser 2014-03-19 23:06:18 +08:00
|
![tangzx](https://cdn.v2ex.com/avatar/6878/fea7/17981_normal.png?m=1586064696) |
|
9
tangzx 2014-03-19 23:08:13 +08:00 via iPhone
128m是什么服务器?比树酶还小?!
|
![dndx](https://cdn.v2ex.com/avatar/d880/e783/11693_normal.png?m=1709796047) |
|
10
dndx 2014-03-20 05:42:18 +08:00
|
![clino](https://cdn.v2ex.com/avatar/6c1d/a886/1368_normal.png?m=1335068029) |
|
11
clino 2014-03-20 08:53:59 +08:00
ansible应该就没有这种问题了,我目前也用这个
|
![wwek](https://cdn.v2ex.com/avatar/0607/f4c7/11474_normal.png?m=1445649487) |
|
12
wwek 2014-03-20 09:11:32 +08:00
1楼经典啊
|