-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
264b077
to
57f657b
Compare
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 { |
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.
@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.
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.
I have this setup scripts, add TODO per this automation is time consume:
##TODO: add "too many open files" configuration
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.
https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu.
- Modify /etc/systemd/user.conf and /etc/systemd/system.conf with the following line (this takes care of graphical login):
DefaultLimitNOFILE=65535
- Modify /etc/security/limits.conf with the following lines (this takes care of non-GUI login):
ubuntu hard nofile 65535
ubuntu soft nofile 65535
- Reboot your computer for changes to take effect and check:
ulimit -n -Hn -Sn
updated folder to setup |
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.
/lgtm
For part of issue: #58.
Server machine can be setup successfully by the command below:
after testing, run the comments below to shutdown server:
TODO list: