The same startup script is used to launch slurmctld and slurmd. The startup script uses "scontrol show daemons" to inspect if you've configured the host executing the slurm startup script as a worker node or "head" node.
Your correct, you can have the head node also act as a worker node, if you define a Node entry for it. I personally would not allow the slurmctld host to run jobs in production. Putting slurmdbd on the same host as slurmctld is simpler, but not necessary. We have run both slurmdbd and slurmctld on the same host for over a year and it's worked well for us. The login nodes just need slurm.conf and the binaries to submit jobs and query SLURM. You don't have to run SLURM services on login nodes if their only purpose is submitting jobs and querying SLURM. The login nodes will need to be authorized to communicate with slurmctld, so setting up something like munge is required. - Trey ============================= Trey Dockendorf Systems Analyst I Texas A&M University Academy for Advanced Telecommunications and Learning Technologies Phone: (979)458-2396 Email: [email protected] Jabber: [email protected] On Mon, Dec 14, 2015 at 7:11 PM, Simpson Lachlan < [email protected]> wrote: > > Hi, > > I think of SLURM - perhaps incorrectly - of consisting of a head node and > a collection of worker nodes. > > Installing for the first time, I would like to get some clarification > please. > > On the head node, I run slurmctld. > On each worker node I run slurmd, but not slurmctld. > > I only run slurmd on the head node if I would also like the head node to > be a worker node? If this is the case, then I also need to add the head > node's hostname to the NodeName and PartitionName vars in the slurm.conf. > > If I don't want the head node to run as a worker, then there is no need > for me to add it to either NodeName or PartitionName in slurm.conf. > > Have I got that right? > > From there, I presume that a simple way to set up the system would be to > run the logging/accounting db (the slurmdbd node?) on the head node? > > Is this a sane set up or is combining the slurmctld and slurmdbd processes > on a single node a bad idea? > > Finally, in what way does a login node differ from a head, worker or > accounting node, and is there anything special that I need to do to that > node - apart from implementing some sort of authorization system? > > Cheers > L. > > > > This email (including any attachments or links) may contain > confidential and/or legally privileged information and is > intended only to be read or used by the addressee. If you > are not the intended addressee, any use, distribution, > disclosure or copying of this email is strictly > prohibited. > Confidentiality and legal privilege attached to this email > (including any attachments) are not waived or lost by > reason of its mistaken delivery to you. > If you have received this email in error, please delete it > and notify us immediately by telephone or email. Peter > MacCallum Cancer Centre provides no guarantee that this > transmission is free of virus or that it has not been > intercepted or altered and will not be liable for any delay > in its receipt. >
