|
From: | 李鸥 |
Subject: | Re: [Fab-user] Hi there, two questions from newcomer. |
Date: | Sun, 4 Dec 2016 08:53:12 +0000 |
Sorry, I forgot to tell you that I disabled address@hidden(pool_size)” when I put over 5000 ip to the list, just used a single thread to run my task.
Is there any other good idea? Regards, Leon From: Nitesh Nanotkar [mailto:address@hidden
It may happen due to some slow and not connecting servers. As the pool size is constant, over a time not connecting or slow responding servers get accumulated in that pool. Leaving less count for good servers. which drops
performance. Use try and except in your fabric for connection. Keep connection timeout 10sec and connection attempts 2. On 4 Dec 2016 1:03 pm, "李鸥" <address@hidden> wrote:
From: Nitesh Nanotkar [mailto:address@hidden]
Hi, Pool size depends on your central server bandwidth and ram usable. You can specify n no. of ips in list. In my scenario I use pool size to be 300 when I just want to connect to servers and transfer files in kbs. I use 50 pool size when I have to transfer installation
scripts which is of 950MB. My server's upload speed is 320Mbps and has RAM of 256GB. Hope you understood on which factors pool size depends now. Thanks! On 4 Dec 2016 11:14 am, "李鸥" <address@hidden> wrote: From: Lee, Leon
Cc: Lee, Leon
[mailto:address@hidden]
Dear Jeff and All, This is Leon from Beijing, I already installed fabric for my Linux server on Sep 2nd, 2016 in order to manage over ten thousand infrastructure devices
(such as the server, storage and switch….etc) by SSH protocol. Just two questions at this time: 1.) how many address@hidden(pool_size)” should I specify in fabfile.py and what is a proper value for this parameter?
2.) what is the maximum number of rows in ip address list? The following is my environment information, just waiting for your suggestions. Thanks in advance. # ulimit -n
65535 # pip show python Name: Python Version: 2.7.12 Summary: A high-level object-oriented programming language Home-page:
http://www.python.org/2.7 Author: Guido van Rossum and the Python community Author-email:
address@hidden License: PSF license Location: /usr/local/python27/lib/python2.7/lib-dynload Requires:
# pip show fabric Name: Fabric Version: 1.12.0 Summary: Fabric is a simple, Pythonic tool for remote execution and deployment. Home-page:
http://fabfile.org Author: Jeff Forcier Author-email:
address@hidden License: UNKNOWN Location: /usr/local/python27/lib/python2.7/site-packages Requires: paramiko # pip show paramiko Name: paramiko Version: 1.17.2 Summary: SSH2 protocol library Home-page:
https://github.com/paramiko/paramiko/ Author: Jeff Forcier Author-email:
address@hidden License: LGPL Location: /usr/local/python27/lib/python2.7/site-packages Requires: ecdsa, pycrypto Best Regards, |
[Prev in Thread] | Current Thread | [Next in Thread] |