Question : In the Stratos Datacenter, our Storage server is encountering performance degradation due to excessive processes held by the nfsuser user. To mitigate this issue, we need to enforce limitations on its maximum processes. Please set the maximum process limits as specified below:
a. Set the soft limit to 1025
b. Set the hard limit to 2025
Please Note:- Perform the below commands based on your question server, user name & other details that might differ as per the task.
1. At first login to one storage server & Switch to the root user
Server Name | IP | User | Password | Purpose |
---|
ststor01 | 172.16.238.15 | natasha | Bl@kW | Nautilus Storage Server |
thor@jump_host /$ ssh natasha@ststor01 The authenticity of host 'ststor01 (172.16.238.15)' can't be established. ECDSA key fingerprint is SHA256:goyzCLJtN5R0K2ifNzlG1NoZGKKhvwu2Ub1r1eyVYcc. ECDSA key fingerprint is MD5:d1:90:fd:eb:71:c9:0f:71:06:1d:b5:bd:a2:b2:20:2d. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ststor01,172.16.238.15' (ECDSA) to the list of known hosts. natasha@ststor01's password: [natasha@ststor01 ~]$ sudo su - We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for natasha: [root@ststor01 ~]# |
2. Edit limit.conf file as below vi /etc/security/limits.conf
(refer to you task for limits & add in the conf file)
[root@ststor01 ~]# vi /etc/security/limits.conf [root@ststor01 ~]# [root@ststor01 ~]# cat /etc/security/limits.conf | grep nproc | grep -v ^# nfsuser soft nproc nfsuser hard nproc [root@ststor01 ~]# |
3. Click on Finish & Confirm to complete the task successful
Happy Learning!!!!
0 Comments