Process Limit Adjustment Level 1 Linux KodeKloud Engineer Task Success

Ticker

6/recent/ticker-posts

Process Limit Adjustment Level 1 Linux KodeKloud Engineer Task Success

 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.


Solution:  

1. At first login to one storage server  &  Switch to the root user 

Server NameIP          UserPasswordPurpose

ststor01172.16.238.15
natashaBl@kWNautilus 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   1025

nfsuser         hard    nproc   2025

[root@ststor01 ~]#


3. Click on Finish & Confirm to complete the task successful

Happy Learning!!!!


Apart from this if you need more clarity,  I have made a  tutorial video on this , 

please go through and share your comments. Like and share the knowledge



Post a Comment

0 Comments

Latest Posts

Create VPC Using Terraform  Kodekloud Engineer Task Success