What are executors, nodes and labels in Jenkins?
IntermediateConceptJenkins
Answer
A node is a machine (the controller or an agent) that can run builds. An executor is a slot on a node that runs one build at a time; a node with 4 executors runs 4 concurrent builds. Labels are tags on nodes (linux, docker, gpu) that pipelines select with agent { label 'docker' }, so jobs land on suitable machines.
We set the controller to 0 executors so builds never run on it.
More on Jenkins
What is Jenkins and how is its architecture organised?BeginnerWhy should you not run builds on the Jenkins controller?BeginnerHow do inbound (JNLP/WebSocket) and SSH agents connect to the controller?IntermediateWhat is a Jenkinsfile and where does it live?BeginnerDeclarative versus Scripted Pipeline: what are the differences?IntermediateWhat does the `post` section in a declarative pipeline do?Beginner