Discussion:
[Fab-user] Hi there, two questions from newcomer.
李鸥
2016-12-10 16:22:04 UTC
Permalink
Dear all,

Who knows how can save the result of failure to another file? Currently, I put env.colorize_errors = 'True' in the fabfile.py. Does fabric support this function?

Regards,
Leon

From: Lee, Leon
Time: Dec 5th, 2016. 12:15 A.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org; fab-***@nongnu.org; Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

I have to reduce the range of ip list and run my task one more time. ☹
# sed -n 1, 3000p total > ip
# fab task
# sed -n 3000, 6000p total > ip
# fab task

Regards,
Leon

From: Lee, Leon
Time: Dec 4th, 2016 4:53 P.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

Sorry, I forgot to tell you that I disabled “@parallel(pool_size)” when I put over 5000 ip to the list, just used single thread to run my task. Is there any other good idea?

Regards,
Leon

From: Nitesh Nanotkar [mailto:***@fecdirect.net]
Time: Dec 4th, 2016 3:40 P.M.
To: Lee, Leon [mailto:***@jd.com]
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

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, "李鞥" <***@jd.com<mailto:***@jd.com>> wrote:

Hi Nitesh,

Thanks for your reply, got it, my server has 128GB RAM and 1Gbps bandwidth in data center. In addition, I noticed that the fabric performance will drop drastically if my ip list over 5000 lines, fabric output was very slow at that moment, how to optimize it?

Best Regards,
Leon from smart phone

From: Nitesh Nanotkar [mailto:***@fecdirect.net<mailto:***@fecdirect.net>]
Time: Dec 4th, 2016 2:31 P.M.
To: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]
Cc: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; ***@bitprophet.org<mailto:***@bitprophet.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

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, "李鞥" <***@jd.com<mailto:***@jd.com>> wrote:

If I can re-express that: what is the recommended value of pool_size?

Regards,
Leon
From: Lee, Leon

Time: Dec 4th, 2016 10:45 A.M.
To: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Cc: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]

Subject: Hi there, two questions from newcomer.

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 “@parallel(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: python-***@python.org<mailto:python-***@python.org>
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: ***@bitprophet.org<mailto:***@bitprophet.org>
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: ***@bitprophet.org<mailto:***@bitprophet.org>
License: LGPL
Location: /usr/local/python27/lib/python2.7/site-packages
Requires: ecdsa, pycrypto

Best Regards,
Leon Lee
李鸥
2016-12-11 02:42:33 UTC
Permalink
Hi Nitesh,

Thanks for your suggestions, It¡¯s OK now for my testing. Have a nice day.

Regards,
Leon

From: Nitesh Nanotkar [mailto:***@inboxops.com]
Time: Dec 11th, 2016. 0:27 A.M.
To: fab-***@nongnu.org; Lee, Leon [mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Open a file in append mode and write to that file in exception area.



For e.g :


def nonConn():
try:
run('')
except:
writeFile(env.host)

def writeFile(servIp):
f=open("nonConn","a")
f.write("%s\n"%(servIp))
f.close()


if __name__ == "__main__":

execute(nonConn)

________________________________
From: Fab-user <fab-user-bounces+niteshn=***@nongnu.org<mailto:fab-user-bounces+niteshn=***@nongnu.org>> on behalf of ÀîÅž <***@jd.com<mailto:***@jd.com>>
Sent: Saturday, December 10, 2016 9:52 PM
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Cc: Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Dear all,



Who knows how can save the result of failure to another file? Currently, I put env.colorize_errors = 'True' in the fabfile.py. Does fabric support this function?



Regards,

Leon



From: Lee, Leon
Time: Dec 5th, 2016. 12:15 A.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>; Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



I have to reduce the range of ip list and run my task one more time. :(

# sed -n 1, 3000p total > ip

# fab task

# sed -n 3000, 6000p total > ip

# fab task



Regards,

Leon



From: Lee, Leon
Time: Dec 4th, 2016 4:53 P.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



Sorry, I forgot to tell you that I disabled ¡°@parallel(pool_size)¡± when I put over 5000 ip to the list, just used single thread to run my task. Is there any other good idea?



Regards,

Leon



From: Nitesh Nanotkar [mailto:***@fecdirect.net]
Time: Dec 4th, 2016 3:40 P.M.
To: Lee, Leon [mailto:***@jd.com]
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

Hi Nitesh,

Thanks for your reply, got it, my server has 128GB RAM and 1Gbps bandwidth in data center. In addition, I noticed that the fabric performance will drop drastically if my ip list over 5000 lines, fabric output was very slow at that moment, how to optimize it?

Best Regards,
Leon from smart phone



From: Nitesh Nanotkar [mailto:***@fecdirect.net<mailto:***@fecdirect.net>]
Time: Dec 4th, 2016 2:31 P.M.
To: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]
Cc: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; ***@bitprophet.org<mailto:***@bitprophet.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

If I can re-express that: what is the recommended value of pool_size?

Regards,
Leon

From: Lee, Leon

Time: Dec 4th, 2016 10:45 A.M.
To: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>

Cc: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]

Subject: Hi there, two questions from newcomer.



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 ¡°@parallel(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: python-***@python.org<mailto:python-***@python.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

License: LGPL

Location: /usr/local/python27/lib/python2.7/site-packages

Requires: ecdsa, pycrypto



Best Regards,
Leon Lee
李鸥
2016-12-11 06:09:10 UTC
Permalink
Hi Nitesh,

I noticed that your configuration can help me collection all timeout hosts to ¡°nonConn¡± file, it¡¯s very useful to my daily job. In addition, I want to put all errors to this file, such as the following warning message of fabric output, (env.colorize_errors = 'True') how can I do that? Sorry for my poor knowledge of python programming.

[cid:***@01D253B5.CEBCA060]

Regards,
Leon

From: Lee, Leon
Time: Dec 11th, 2016. 10:43 A.M.
To: Nitesh Nanotkar; fab-***@nongnu.org
Cc: Lee, Leon [mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

Hi Nitesh,

Thanks for your suggestions, It¡¯s OK now for my testing. Have a nice day.

Regards,
Leon

From: Nitesh Nanotkar [mailto:***@inboxops.com]
Time: Dec 11th, 2016. 0:27 A.M.
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; Lee, Leon [mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Open a file in append mode and write to that file in exception area.



For e.g :


def nonConn():
try:
run('')
except:
writeFile(env.host)

def writeFile(servIp):
f=open("nonConn","a")
f.write("%s\n"%(servIp))
f.close()


if __name__ == "__main__":

execute(nonConn)

________________________________
From: Fab-user <fab-user-bounces+niteshn=***@nongnu.org<mailto:fab-user-bounces+niteshn=***@nongnu.org>> on behalf of ÀîÅž <***@jd.com<mailto:***@jd.com>>
Sent: Saturday, December 10, 2016 9:52 PM
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Cc: Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Dear all,



Who knows how can save the result of failure to another file? Currently, I put env.colorize_errors = 'True' in the fabfile.py. Does fabric support this function?



Regards,

Leon



From: Lee, Leon
Time: Dec 5th, 2016. 12:15 A.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>; Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



I have to reduce the range of ip list and run my task one more time. :(

# sed -n 1, 3000p total > ip

# fab task

# sed -n 3000, 6000p total > ip

# fab task



Regards,

Leon



From: Lee, Leon
Time: Dec 4th, 2016 4:53 P.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



Sorry, I forgot to tell you that I disabled ¡°@parallel(pool_size)¡± when I put over 5000 ip to the list, just used single thread to run my task. Is there any other good idea?



Regards,

Leon



From: Nitesh Nanotkar [mailto:***@fecdirect.net]
Time: Dec 4th, 2016 3:40 P.M.
To: Lee, Leon [mailto:***@jd.com]
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

Hi Nitesh,

Thanks for your reply, got it, my server has 128GB RAM and 1Gbps bandwidth in data center. In addition, I noticed that the fabric performance will drop drastically if my ip list over 5000 lines, fabric output was very slow at that moment, how to optimize it?

Best Regards,
Leon from smart phone



From: Nitesh Nanotkar [mailto:***@fecdirect.net<mailto:***@fecdirect.net>]
Time: Dec 4th, 2016 2:31 P.M.
To: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]
Cc: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; ***@bitprophet.org<mailto:***@bitprophet.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

If I can re-express that: what is the recommended value of pool_size?

Regards,
Leon

From: Lee, Leon

Time: Dec 4th, 2016 10:45 A.M.
To: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>

Cc: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]

Subject: Hi there, two questions from newcomer.



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 ¡°@parallel(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: python-***@python.org<mailto:python-***@python.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

License: LGPL

Location: /usr/local/python27/lib/python2.7/site-packages

Requires: ecdsa, pycrypto



Best Regards,
Leon Lee
李鸥
2016-12-13 08:09:06 UTC
Permalink
Hi all,

At last, I use the following command to get the desired result.
# fab task 2>&1 | grep -B3 Warning

Regards,
Leon

From: Lee, Leon
Time: Dec 11th, 2016. 2:09 P.M.
To: Nitesh Nanotkar
Cc: fab-***@nongnu.org; Lee, Leon[mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

Hi Nitesh,

I noticed that your configuration can help me collection all timeout hosts to ¡°nonConn¡± file, it¡¯s very useful to my daily job. In addition, I want to put all errors to this file, such as the following warning message of fabric output, (env.colorize_errors = 'True') how can I do that? Sorry for my poor knowledge of python programming.

[cid:***@01D25558.2F6B2640]

Regards,
Leon

From: Lee, Leon
Time: Dec 11th, 2016. 10:43 A.M.
To: Nitesh Nanotkar; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Cc: Lee, Leon [mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.

Hi Nitesh,

Thanks for your suggestions, It¡¯s OK now for my testing. Have a nice day.

Regards,
Leon

From: Nitesh Nanotkar [mailto:***@inboxops.com]
Time: Dec 11th, 2016. 0:27 A.M.
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; Lee, Leon [mailto:***@jd.com]
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Open a file in append mode and write to that file in exception area.



For e.g :


def nonConn():
try:
run('')
except:
writeFile(env.host)

def writeFile(servIp):
f=open("nonConn","a")
f.write("%s\n"%(servIp))
f.close()


if __name__ == "__main__":

execute(nonConn)

________________________________
From: Fab-user <fab-user-bounces+niteshn=***@nongnu.org<mailto:fab-user-bounces+niteshn=***@nongnu.org>> on behalf of ÀîÅž <***@jd.com<mailto:***@jd.com>>
Sent: Saturday, December 10, 2016 9:52 PM
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Cc: Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.


Dear all,



Who knows how can save the result of failure to another file? Currently, I put env.colorize_errors = 'True' in the fabfile.py. Does fabric support this function?



Regards,

Leon



From: Lee, Leon
Time: Dec 5th, 2016. 12:15 A.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>; Lee, Leon
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



I have to reduce the range of ip list and run my task one more time. :(

# sed -n 1, 3000p total > ip

# fab task

# sed -n 3000, 6000p total > ip

# fab task



Regards,

Leon



From: Lee, Leon
Time: Dec 4th, 2016 4:53 P.M.
To: Nitesh Nanotkar
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



Sorry, I forgot to tell you that I disabled ¡°@parallel(pool_size)¡± when I put over 5000 ip to the list, just used single thread to run my task. Is there any other good idea?



Regards,

Leon



From: Nitesh Nanotkar [mailto:***@fecdirect.net]
Time: Dec 4th, 2016 3:40 P.M.
To: Lee, Leon [mailto:***@jd.com]
Cc: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

Hi Nitesh,

Thanks for your reply, got it, my server has 128GB RAM and 1Gbps bandwidth in data center. In addition, I noticed that the fabric performance will drop drastically if my ip list over 5000 lines, fabric output was very slow at that moment, how to optimize it?

Best Regards,
Leon from smart phone



From: Nitesh Nanotkar [mailto:***@fecdirect.net<mailto:***@fecdirect.net>]
Time: Dec 4th, 2016 2:31 P.M.
To: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]
Cc: fab-***@nongnu.org<mailto:fab-***@nongnu.org>; ***@bitprophet.org<mailto:***@bitprophet.org>
Subject: Re: [Fab-user] Hi there, two questions from newcomer.



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, "ÀîÅž" <***@jd.com<mailto:***@jd.com>> wrote:

If I can re-express that: what is the recommended value of pool_size?

Regards,
Leon

From: Lee, Leon

Time: Dec 4th, 2016 10:45 A.M.
To: ***@bitprophet.org<mailto:***@bitprophet.org>; fab-***@nongnu.org<mailto:fab-***@nongnu.org>

Cc: Lee, Leon [mailto:***@jd.com<mailto:***@jd.com>]

Subject: Hi there, two questions from newcomer.



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 ¡°@parallel(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: python-***@python.org<mailto:python-***@python.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

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: ***@bitprophet.org<mailto:***@bitprophet.org>

License: LGPL

Location: /usr/local/python27/lib/python2.7/site-packages

Requires: ecdsa, pycrypto



Best Regards,
Leon Lee

Loading...