Annotation Interface Workload


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface Workload
Assigns a Cockroach vCluster workload priority to the annotated method, mapped to CockroachDB admission-control quality-of-service and applied as SET LOCAL default_transaction_quality_of_service for the transaction.

Most useful alongside VirtualCluster. The aspect fires on @VirtualCluster; a method carrying @Workload without @VirtualCluster should also carry @VirtualCluster (or use the programmatic VirtualClusterContext) for the QoS to be applied.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Workload priority classes and their CockroachDB QoS mapping.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The workload priority class.