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

Fixed issues with configuring new GCE instances #566

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Jul 10, 2018

  • New nodes cloned from a working node can be used with the script
  • Script takes care of installing SSH keys, and package dependencies correctly

- New nodes cloned from a working node can be used with the script
- Script takes care of installing SSH keys, and package dependencies correctly
@pgarg66 pgarg66 requested review from rob-solana, garious and mvines July 10, 2018 00:48

ssh "$remote_user"@"$ip_addr" 'mkdir ~/.ssh'

ssh -n -f "$remote_user"@"$ip_addr" "sudo service sshguard stop"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a TODO comment here to avoid killing sshguard (filing an issue works too), as well as documenting why in a comment. For now this is ok, but in general we don't want to do be doing this IMO

ssh -n -f "$remote_user"@"$ip_addr" "sudo service sshguard stop"
ssh -n -f "$remote_user"@"$ip_addr" 'sudo apt-get --assume-yes install rsync'

if [[ -n "$leader" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rob-solana is gonna tell you to remove those double quotes, [[ doesn't need them :)


if [[ -n "$leader" ]]; then
echo "Adding known hosts for $ip_addr"
ssh -n -f "$remote_user"@"$ip_addr" "ssh-keygen -R $leader"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "$remote_user@$ip_addr" seems nicer than "$remote_user"@"$ip_addr"

Copy link
Member

@mvines mvines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just nits, r+

@pgarg66
Copy link
Contributor Author

pgarg66 commented Jul 10, 2018

Addressing comments. Will push another patch after testing it.

@pgarg66 pgarg66 force-pushed the pankaj-remote-multinode-env branch from 33a16fa to abe075a Compare July 10, 2018 03:45
@pgarg66
Copy link
Contributor Author

pgarg66 commented Jul 10, 2018

@garious , I believe, this change can be merged.

@garious garious merged commit 3b1aa84 into master Jul 10, 2018
@pgarg66 pgarg66 deleted the pankaj-remote-multinode-env branch July 10, 2018 19:14
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
* Add Ristretto version of THEMIS

BN BPF instruction counts:
  CalculateAggregate:    83,511
  SubmitProofDecryption: 33,755,027

Ristretto BPF instruction counts:
  CalculateAggregate:    13,049,558
  SubmitProofDecryption: 13,149,232

* Fix CI script
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Apr 4, 2024
…ee (solana-labs#566)

* refactor shareble code into its own function; update and add tests

* add function to reward with full prio fee and burnt transaction fee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants