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

server machine setup automation #73

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

sonyafenge
Copy link
Collaborator

For part of issue: #58.

Server machine can be setup successfully by the command below:

export GRS_INSTANCE_PREFIX=[run_prerfix] SERVER_DISK_SIZE=100GB SERVER_SIZE=n1-standard-32
./grs/grs-up.sh

after testing, run the comments below to shutdown server:

./grs/grs-down.sh

TODO list:

  1. add "CREATE_CUSTOM_NETWORK=true" support, only default network is tested for now.
  2. add build to build cmd bin to avoid golfing and git clone.

@sonyafenge sonyafenge force-pushed the pr-serverautomation branch from 264b077 to 57f657b Compare July 6, 2022 20:45
@sonyafenge sonyafenge requested a review from yb01 July 6, 2022 20:54
@yb01
Copy link
Collaborator

yb01 commented Jul 7, 2022

should the scripts under resource-management/setup/gce/config-default.sh, instead of resource-management/grs/gce/config-default.sh ?

# ensure-temp-dir
# detect-project
# get-bearer-token
function create-server-instance {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@q131172019, can you please share with Sonya on the commands to increase the # of sockets ( open file descriptors ) for large concurrent settings? those settings will be needed in the server setup scripts.

Copy link
Collaborator Author

@sonyafenge sonyafenge Jul 8, 2022

Choose a reason for hiding this comment

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

I have this setup scripts, add TODO per this automation is time consume:
##TODO: add "too many open files" configuration

Copy link
Collaborator

Choose a reason for hiding this comment

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

https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu.

  1. Modify /etc/systemd/user.conf and /etc/systemd/system.conf with the following line (this takes care of graphical login):

DefaultLimitNOFILE=65535

  1. Modify /etc/security/limits.conf with the following lines (this takes care of non-GUI login):

ubuntu hard nofile 65535
ubuntu soft nofile 65535

  1. Reboot your computer for changes to take effect and check:
    ulimit -n -Hn -Sn

@sonyafenge
Copy link
Collaborator Author

should the scripts under resource-management/setup/gce/config-default.sh, instead of resource-management/grs/gce/config-default.sh ?

updated folder to setup

Copy link
Collaborator

@yb01 yb01 left a comment

Choose a reason for hiding this comment

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

/lgtm

@yb01 yb01 merged commit 8a53eee into CentaurusInfra:main Jul 8, 2022
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