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

Cpu only for multi-user version #28

Open
wants to merge 88 commits into
base: cpu-only
Choose a base branch
from

Conversation

kylincaster
Copy link

For multi-user, each user has the same opportunity to invoke a new job, if the user's slot and the total slot are large enough.

usage:

  1. the task-spooler server can only be run by the root
  2. socket file is created at ./${tmpdir}/socket-ts.root or which could be specific by TS_SOCKET environment variable.(server_start.c)
  3. the default user file is specifiec in user.c which could be modified by the enivorment variable TS_USER_PATH. Moreover a log file is also controlled by user.c
  4. format of user file (Max 100 users):
# 1231 # comments
TS_SLOTS = 4 # Set the total TS_SLOTS in task-spooler
# TS_FIRST_JOBID = 2000 # Set the index of the first job in task-spooler
# uid     name    slots
1000      Kylin   10
3021     test1    10
1001     test0    100
34        user2    30

New features/Commands and the potential problem

  1. --daemon Run the server as daemon by Root only.
  2. --hold and --restart [jobid] hold-on and restart a task.
  3. --lock and --unlock Lock and unlock the task-spooler servers to avoid the potential conflict
  4. --stop and --cont [user], pause and continue all tasks, or lock/unlock all user by root
  5. -A show all user information and all tasks
  6. -X refresh the user configure on-the-fly
  7. -K kill the task spooler server
  8. -r remove a job, even it is running

The main problem of my work is that the root server cannot control the task run by the other normal user.
I found in my service I cannot stop/pause the task owner by the other normal user.
Could you have a look on the c_remove_job() function in the client.c

@justanhduc
Copy link
Owner

Very impressive! I will try to have a look asap.

@justanhduc justanhduc self-assigned this Oct 28, 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