The node role defines the purpose of the node. A node with the service role can run application services. A node with the compute role can perform computations requested by remote application services. A node with both roles can run application services and locally perform computations for those services.
By default, each gateway and worker node has both the service and compute roles enabled. Each node must have at least one role enabled.