Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8018585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:09:40+00:00 2026-06-04T21:09:40+00:00

I am writing code to deploy using Fabric to all the web machines and

  • 0

I am writing code to deploy using Fabric to all the web machines and was wondering how rsync vs. upload project works in terms of parallelizing and shortest time.

Are there any benchmarks?

Can I rsync to 100 machines in parallel? What’s the limiting factor?

  rsync_project(
        env.root,
        exclude=RSYNC_EXCLUDE,
        delete=True,
        extra_opts=extra_opts,
    )

Similarly what’s the limiting factor for upload_project? What’s the sftp limit in terms of number?

@parallel
def testapp():
    with cd('~/projects'):
        upload_project('./receiver', '/home/sysadmin/projects')

From a hunch stand point, upload project should be better since the tar needs to be done only once and then its sftp. Or is it multiple times for an example shown above?

Does fabric do some sort of throttling to ensure the network is not choked to the limit?

Can someone help with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:09:41+00:00Added an answer on June 4, 2026 at 9:09 pm

    Before benchmark rsync and upload_project, you have to know that rsync transmit only differential data. Rsync will become very efficient than upload_project when your deployment only contains few changes.

    delete=True means that files that have been deleted locally will be deleted remotely. It’s probably what you want.

    If you insist, I have to say the benchmark result will depend on the file numbers and size of them. For example, if you have 1K-sized file of 1G, rsync will be much slower than upload_project. Because the later one always pack a tar/gzip and then transmit this large file.

    At last, fabric doesn’t have the “tar cache”, it will repeat tar on every deploy because the code is written as:

        finally:
            run("rm -f %s" % tar_file)
    finally:
        local("rm -rf %s" % tmp_folder)
    

    But you could add some cache or just comment out them manually.

    For the network thing, fabric leaves them to sftp which have Congestion window to make
    sure the network is not choking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When writing code in an Eclipse project, I'm usually quite messy and undisciplined in
I am currently writing code in C++ to find all possible permutations of 6
So I've been pigeon-holed into writing some Jython code. I've been using the latest
I'm considering writing my own delivery code using PowerShell and/or C#, maybe shelling to
Writing/reading code seems less stress then preparing a deploy scripts such as ./configure then
I'm writing a deployment engine for our code. I plan to put a deploy.py
I'm writing code to access the i2c driver(from kernel space) using the standard interface
When writing code in C/C++ using MPI, if memory is allocated before MPI_Init is
While writing code in a file that would comprise of PHP, HTML, CSS &
While writing code, it is pretty common to request a page with an appended

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.