Hi Experts,
Need to understand what exactly is sticky execution and how it works? Is there any detailed documentation or samples available for this?
Hi Experts,
Need to understand what exactly is sticky execution and how it works? Is there any detailed documentation or samples available for this?
Docs page for sticky executions (workflow caching).
Worker tuning docs page that includes related configuration.
Forum post describing more internals of workflow caching.
There isn’t a “sample” for this as it’s really a Temporal internal feature.
Apart from sticky_cache_size
and workflow_active_thread_count
, are there any other metrics from Java SDK Metrics that should be monitored for performance of the workers?
Also, in my current setup (done using helm charts), the SDK metric workflow_active_thread_count
gives the value NaN and sticky_cache_size
is not present at the worker metric endpoint itself. Why so?
Apart from
sticky_cache_size
andworkflow_active_thread_count
, are there any other metrics from Java SDK Metrics that should be monitored for performance of the workers?
The metrics section in worker tuning guide goes over the most important ones.
Also, in my current setup (done using helm charts), the SDK metric
workflow_active_thread_count
gives the value NaN andsticky_cache_size
is not present at the worker metric endpoint itself. Why so?
For workflow_active_thread_count
, this should be available if you configure metics on your worker(s) and run some workflows. I am able to see it using the metrics sample.
For sticky_cache_size
looking at the SDK code, this metrics seems to be set/updated only when a workflow gets evicted from the worker cache. Will check with SDK team to see if this is intended to be set only in this situation.
If you are using Java SDK, for all metrics in the linked doc to be produced, you will need to use version >= 1.8.0.