Commit 9e9a461
authored
Worker Heartbeat: Plumb metrics and migrate to runtime/namespace/client level (#1038)
* Runtime/namespace/client wide worker heartbeat (#983)
* worker heartbeat
* Address Spencer's comments
* wip use client_identity_override as part of key, added test
* Refactor almost complete, need to plumb through telemetry to SharedNamespaceWorker
* Verified client replacement works, need to update tests and cleanup
* formating
* clean up
* forgot to remove new() now that using builder pattern
* Switch to worker_set_key
* Replace client test passes, need to write unit tests in worker_registry
* cargo test-lint
* limit nexus to 1 poller, add tests for worker_registry for heartbeat
* PR comments
* new test helper
* Return error on multi worker register for same namespace and task queue on same client
* cargo fmt
* Fix registration order, unique task queue for test worker
* Remove TEST_Q variable
* Missing quotes
* CI lint and docker test fix, rename worker_set_key to worker_grouping_key
* clippy bug
* Worker heartbeat: New in-memory metrics mechism, plumb rest of heartbeat data (#1023)
* plumb in memory metrics
* simplify worker::new(), fix some heartbeat metrics, new test file
* CounterImpl, final_heartbeat, more specific metric label dbg_panic msg, counter_with_in_mem and and_then()
* Support in-mem metrics when metrics aren't configured
* Move sys_info refresh to dedicated thread, use tuner's existing sys info
* Format, AtomicCell
* Fix unit test
* Set dynamic config for WorkerHeartbeatsEnabled and ListWorkersEnabled, remove stale metric previously added
* Should not expect heartbeat nexus worker in metrics for non-heartbeating integ test
* recv_timeout instead of thread::sleep, use WorkflowService::list_workers directly, WithLabel API improvement
* MetricAttributes::NoOp, add mechanism to ignore dupe workers for testing, more tests
* More tests, sticky cache miss, plugins
* Formatting, fix skip_client_worker_set_check
* Cursor found a bug
* Lower sleep time, add print for debugging
* more prints
* use semaphores for worker_heartbeat_failure_metrics
* skip_client_worker_set_check for all integ workers
* Can't use tokio semaphore in workflow code
* use signal to test workflow_slots.last_interval_failure_tasks
* Use Notify instead of semaphores, fix test flake
* Use eventually() instead of a manual sleep
* max_outstanding_workflow_tasks 2
* merge
* Forgot to commit format fixes
* Fix test1 parent 561ca79 commit 9e9a461
File tree
45 files changed
+3271
-689
lines changed- .cargo
- client/src
- worker_registry
- core-api
- src
- telemetry
- core-c-bridge
- include
- src
- tests
- core/src
- core_tests
- pollers
- replay
- telemetry
- test_help
- worker
- client
- tuner
- workflow
- sdk/src
- tests
- common
- integ_tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+3271
-689
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
390 | 392 | | |
391 | 393 | | |
392 | 394 | | |
393 | | - | |
| 395 | + | |
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
| |||
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
443 | | - | |
| 445 | + | |
444 | 446 | | |
445 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
446 | 453 | | |
447 | 454 | | |
448 | 455 | | |
| |||
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
587 | | - | |
| 594 | + | |
588 | 595 | | |
589 | 596 | | |
590 | 597 | | |
| |||
866 | 873 | | |
867 | 874 | | |
868 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
869 | 881 | | |
870 | 882 | | |
871 | 883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
| 1604 | + | |
1604 | 1605 | | |
1605 | 1606 | | |
1606 | 1607 | | |
| |||
1791 | 1792 | | |
1792 | 1793 | | |
1793 | 1794 | | |
1794 | | - | |
| 1795 | + | |
1795 | 1796 | | |
1796 | 1797 | | |
1797 | 1798 | | |
| |||
1803 | 1804 | | |
1804 | 1805 | | |
1805 | 1806 | | |
1806 | | - | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
1810 | 1811 | | |
1811 | | - | |
1812 | | - | |
| 1812 | + | |
| 1813 | + | |
1813 | 1814 | | |
1814 | 1815 | | |
1815 | 1816 | | |
| |||
1839 | 1840 | | |
1840 | 1841 | | |
1841 | 1842 | | |
1842 | | - | |
| 1843 | + | |
1843 | 1844 | | |
1844 | 1845 | | |
1845 | 1846 | | |
| |||
1854 | 1855 | | |
1855 | 1856 | | |
1856 | 1857 | | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1857 | 1863 | | |
1858 | | - | |
1859 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
1860 | 1868 | | |
1861 | 1869 | | |
1862 | 1870 | | |
| |||
1886 | 1894 | | |
1887 | 1895 | | |
1888 | 1896 | | |
1889 | | - | |
| 1897 | + | |
1890 | 1898 | | |
1891 | 1899 | | |
1892 | 1900 | | |
| |||
0 commit comments