1. A method comprising: generating a plurality of service classes, wherein each service class is defined by a respective weight and priority that indicates a respective level of resource usage dedicated to execution of each associated database-related action as compared to other database-related actions respectively associated with different service classes; creating a context object for an activity, wherein the activity defines a set of processes associated with at least one database-related action in a database system, and wherein the context object includes information associated with a database-workload type of the activity; mapping the context object to a service class from the plurality of service classes based on the information associated with the database-workload type of the activity; simultaneously allocating a set of resources at all nodes in the database system based on the weight and priority of the service class; and executing the set of processes associated with the activity based on the respective weight and the priority of the service class.