Commit 8f39cc3
committed
[cuebot/rust/sandbox] Decouple Kafka consumer into standalone Rust indexer
Move Kafka-to-Elasticsearch event indexing from Cuebot to a standalone Rust service, addressing code review feedback to decouple the consumer from the Java codebase.
Rust kafka-es-indexer:
- Add rust/crates/kafka-es-indexer: standalone Kafka consumer that indexes OpenCue events (job, layer, frame, host, proc) to Elasticsearch
- Async Kafka consumer with configurable batch processing
- Elasticsearch bulk indexing with date-based indices
- Index templates with proper field mappings for all event types
- CLI with environment variable configuration
Cuebot cleanup:
- Remove Java KafkaEventConsumer and ElasticsearchClient classes
- Remove getJobHistory, getFrameHistory, getLayerHistory, getLayerMemoryHistory from HistoricalDao and HistoricalManager
- Update ManageMonitoring gRPC servant to return UNIMPLEMENTED with message directing users to query Elasticsearch directly
- Keep KafkaEventPublisher for publishing events from Cuebot to Kafka
- Keep core job archival methods (getFinishedJobs, transferJob) intact
Infrastructure:
- Update docker-compose.monitoring-full.yml to include kafka-es-indexer1 parent b03689f commit 8f39cc3
File tree
21 files changed
+2172
-1420
lines changed- cuebot/src/main
- java/com/imageworks/spcue
- dao
- postgres
- monitoring
- servant
- service
- resources/conf/spring
- rust
- crates/kafka-es-indexer
- src
- sandbox
21 files changed
+2172
-1420
lines changedLines changed: 0 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 39 | | |
Lines changed: 0 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | | - | |
27 | 24 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 25 | | |
34 | 26 | | |
35 | 27 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
| |||
51 | 40 | | |
52 | 41 | | |
53 | 42 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 43 | | |
0 commit comments