Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document using parallel commands in fab with -P #150

Open
onderkalaci opened this issue Apr 8, 2020 · 0 comments
Open

Document using parallel commands in fab with -P #150

onderkalaci opened this issue Apr 8, 2020 · 0 comments

Comments

@onderkalaci
Copy link
Member

Fab supports parallel command execution, which is a lot faster in most of the cases:

fab -P pg.restart

[localhost] Executing task 'pg.restart'
[10.192.0.5] Executing task 'pg.restart'
[10.192.0.4] Executing task 'pg.restart'
[10.192.0.7] Executing task 'pg.restart'
...

Whereas we today instruct sequential:

fab pg.restart
[localhost] Executing task 'pg.restart'
[localhost] run: readlink /home/pguser/pg-latest
[localhost] out: /home/pguser/citus-installation
[localhost] out: 

[localhost] run: set -m; bin/pg_ctl -D data -l logfile restart
[localhost] out: waiting for server to shut down.... done
[localhost] out: server stopped
[localhost] out: waiting for server to start.... done
[localhost] out: server started
[localhost] out: 

[10.192.0.5] Executing task 'pg.restart'
[10.192.0.5] run: readlink /home/pguser/pg-latest
[10.192.0.5] out: /home/pguser/citus-installation
[10.192.0.5] out: 

[10.192.0.5] run: set -m; bin/pg_ctl -D data -l logfile restart
[10.192.0.5] out: waiting for server to shut down.... done
[10.192.0.5] out: server stopped
[10.192.0.5] out: waiting for server to start.... done
[10.192.0.5] out: server started
[10.192.0.5] out: 

[10.192.0.4] Executing task 'pg.restart'
[10.192.0.4] run: readlink /home/pguser/pg-latest
[10.192.0.4] out: /home/pguser/citus-installation
[10.192.0.4] out: 

[10.192.0.4] run: set -m; bin/pg_ctl -D data -l logfile restart
[10.192.0.4] out: waiting for server to shut down.... done
[10.192.0.4] out: server stopped
[10.192.0.4] out: waiting for server to start.... done
[10.192.0.4] out: server started
[10.192.0.4] out: 

[10.192.0.7] Executing task 'pg.restart'
[10.192.0.7] run: readlink /home/pguser/pg-latest
[10.192.0.7] out: /home/pguser/citus-installation
[10.192.0.7] out: 

[10.192.0.7] run: set -m; bin/pg_ctl -D data -l logfile restart
[10.192.0.7] out: waiting for server to shut down.... done
[10.192.0.7] out: server stopped
[10.192.0.7] out: waiting for server to start.... done
[10.192.0.7] out: server started
[10.192.0.7] out: 


Done.
Disconnecting from 10.192.0.7... done.
Disconnecting from 10.192.0.5... done.
Disconnecting from localhost... done.
Disconnecting from 10.192.0.4... done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant