-1

I have a Linux system with NGINX web server, PostgreSQL database server, and many users running processes of same web application, each web application has its NGINX configuration file and a PostgreSQL connection.

I want to balance the load among the users (including NGINX user, PostgreSQL user, and web app users) and my approach is to adjust each user/s CPU time quota/quantum (allowance of CPU time) such that the important users get more CPU time, and less important users get less CPU time. To be specific, I want to assign different quantum quotas for each user. I don't know if that is possible. Is it possible?

I also want to allow the Important users to preempt other processes but not their own processes. For example, I want NGINX and PostgreSQL users to be able to preempt the other users processes but not their own processes in order to increase responsiveness of the system.

If I can't manage it at the user level, how else could I manage system resources among users?

My machine is Ubuntu server 24.04 with default installation .

I have looked up

But I can't find user specific guide or process based guide showing me how to adjust CPU quotas for users or processes .

Please don't recommend that I use "nice" or "increasing priority" for NGINX or PostgreSQL: these don't work to solve this.

3
  • 1
    Note: AI-generated answers are already off topic here on SuperUser. There is no need to tell people not to post them. If you think an answer posted is AI-generated, use the Flag button and tell the moderators of your suspicions. Commented Jun 18 at 23:23
  • 1
    I've been experimenting with the tools and methods outlined in this documentation access.redhat.com/documentation/en-us/red_hat_enterprise_linux/… on Ubuntu, once I come up with a conclusion, I will share it . Commented Jun 18 at 23:42
  • I'm stuck with the preemption part of the problem. I did manage the Round Robin perfectly . Commented Jun 20 at 11:44

0

You must log in to answer this question.

Browse other questions tagged .