-
Notifications
You must be signed in to change notification settings - Fork 17
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
Removing the master and slave terminology #266
Open
bopopescu
wants to merge
1
commit into
BD2KGenomics:master
Choose a base branch
from
bopopescu:bucharest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -66,7 +66,7 @@ def __init__( self, application ): | |||||
|
||||||
self.option( '--cluster-name', '-c', metavar='NAME', | ||||||
help=heredoc( """A name for the new cluster. If absent, the instance ID of | ||||||
the master will be used. Cluster names do not need to be unique, but they | ||||||
the main will be used. Cluster names do not need to be unique, but they | ||||||
should be in order to avoid user error.""" ) ) | ||||||
|
||||||
self.option( '--num-workers', '-s', metavar='NUM', | ||||||
|
@@ -277,7 +277,7 @@ def run_on_box( self, options, first_worker ): | |||||
workers = first_worker.list( leader_instance_id=leader.instance_id ) | ||||||
used_cluster_ordinals = set( w.cluster_ordinal for w in workers ) | ||||||
assert len( used_cluster_ordinals ) == len( workers ) # check for collisions | ||||||
assert 0 not in used_cluster_ordinals # master has 0 | ||||||
assert 0 not in used_cluster_ordinals # main has 0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
used_cluster_ordinals.add( 0 ) # to make the math easier | ||||||
cluster_ordinal = allocate_cluster_ordinals( num=options.num_workers, | ||||||
used=used_cluster_ordinals ) | ||||||
|
@@ -395,7 +395,7 @@ def run_on_cluster( self, options, ctx, cluster ): | |||||
|
||||||
class RsyncClusterCommand( RsyncCommandMixin, ApplyClusterCommand ): | ||||||
""" | ||||||
Run rsync against each node in a cluster. The rsync program will be run against master first, | ||||||
Run rsync against each node in a cluster. The rsync program will be run against main first, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
followed by all workers in parallel. To avoid being prompted for confirmation of the host | ||||||
key, use --ssh-opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no". | ||||||
""" | ||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.