diff --git a/cmd/xtcp2/testdata/defineflags-golden.txt b/cmd/xtcp2/testdata/defineflags-golden.txt index 96efbbc3a..4f742dd8a 100644 --- a/cmd/xtcp2/testdata/defineflags-golden.txt +++ b/cmd/xtcp2/testdata/defineflags-golden.txt @@ -132,6 +132,9 @@ s3SpillMaxBytes 1073741824 s3parquet: bytes -s3SpillDir may hold; past it the ol s3UploadBackoffCap 0s s3parquet: cap on a single upload retry's backoff window (full jitter draws in [0,window]). 0 = derive as clamp(-frequency/10, 1s, 1h). s3UploadMaxAttempts 10 s3parquet: max upload attempts (original + retries) before dropping the object. Retries use full-jitter exponential backoff. tag label applied to the protobuf +tcpMaxBufferedBytes 0 tcp dest: marshaled envelope bytes the queue may hold. Past it the oldest envelope is dropped (reason="buffered_bytes"); the newest is always kept. 0 = no byte bound. Falls back to TCP_MAX_BUFFERED_BYTES env. +tcpQueueDepth 16 tcp dest: envelopes queued between the poller and the write worker (max 4096). Past it the oldest is dropped and counted in xtcp_tcp_dropped_total{reason="queue_depth"}, so a wedged sink never blocks polling. 0 = 16. Falls back to TCP_QUEUE_DEPTH env. +tcpWriteTimeout 30s tcp dest: deadline on a single write (and the dial), bounding a wedged route to the timeout instead of the TCP retransmit window (~15.4 min at prod tcp_retries2). Past it the conn is closed, the next attempt re-dials under full-jitter backoff, and after 3 failed attempts the envelope is dropped (xtcp_tcp_dropped_total{reason="attempts"}). 0 = 30s. Falls back to TCP_WRITE_TIMEOUT env. timeout 5s Poll timeout per name space topic xtcp Kafka or NSQ topic treatmentAttribution optional journal directory of a standalone xtcp2-treatment-agent (its config's directory, default /var/lib/xtcp2/routes); this daemon only reads the snapshot and stamps treatment provenance onto records. Mutually exclusive with -treatmentConfig diff --git a/cmd/xtcp2/xtcp2.go b/cmd/xtcp2/xtcp2.go index 298cf73bc..d2c2a2be3 100644 --- a/cmd/xtcp2/xtcp2.go +++ b/cmd/xtcp2/xtcp2.go @@ -126,6 +126,12 @@ const ( s3MaxBufferedBytesCst uint64 = 64 * 1024 * 1024 s3SpillMaxBytesCst uint64 = 1024 * 1024 * 1024 + // tcp destination delivery bounds (#345/#339): the write deadline, + // queue depth and byte bound handed to the tcp worker. + tcpWriteTimeoutCst = 30 * time.Second + tcpQueueDepthCst uint = 16 + tcpMaxBufferedBytesCst uint64 = 0 // 0 = no byte bound (depth alone) + // Namespace-reconcile cadence defaults (Method B /proc-scan discovery). // reconcileBeforePoll ties discovery to poll cadence (reconcile before each // poll) and is the real discovery mechanism. The background reconcile is now @@ -317,6 +323,10 @@ type mainFlags struct { s3SpillDir *string s3SpillMaxBytes *uint64 + tcpWriteTimeout *time.Duration + tcpQueueDepth *uint + tcpMaxBufferedBytes *uint64 + reconcileFrequency *time.Duration reconcileBeforePoll *bool @@ -514,6 +524,9 @@ func defineFlags() *mainFlags { f.xtcpProtoFile = flag.String("xtcpProtoFile", xtcpProtoFileCst, "xtcpProtoFile for registering with the schema registry") f.kafkaSchemaUrl = flag.String("kafkaSchemaUrl", kafkaSchemaUrlCst, "kafka schema registry URL") f.produceTimeout = flag.Duration("produceTimeout", kafkaProduceTimeoutCst, "Kafka produce timeout (context.WithTimeout)") + f.tcpWriteTimeout = flag.Duration("tcpWriteTimeout", tcpWriteTimeoutCst, "tcp dest: deadline on a single write (and the dial), bounding a wedged route to the timeout instead of the TCP retransmit window (~15.4 min at prod tcp_retries2). Past it the conn is closed, the next attempt re-dials under full-jitter backoff, and after 3 failed attempts the envelope is dropped (xtcp_tcp_dropped_total{reason=\"attempts\"}). 0 = 30s. Falls back to TCP_WRITE_TIMEOUT env.") + f.tcpQueueDepth = flag.Uint("tcpQueueDepth", tcpQueueDepthCst, "tcp dest: envelopes queued between the poller and the write worker (max 4096). Past it the oldest is dropped and counted in xtcp_tcp_dropped_total{reason=\"queue_depth\"}, so a wedged sink never blocks polling. 0 = 16. Falls back to TCP_QUEUE_DEPTH env.") + f.tcpMaxBufferedBytes = flag.Uint64("tcpMaxBufferedBytes", tcpMaxBufferedBytesCst, "tcp dest: marshaled envelope bytes the queue may hold. Past it the oldest envelope is dropped (reason=\"buffered_bytes\"); the newest is always kept. 0 = no byte bound. Falls back to TCP_MAX_BUFFERED_BYTES env.") f.label = flag.String("label", labelCst, "label applied to the protobuf") f.tag = flag.String("tag", tagCst, "label applied to the protobuf") f.location = flag.String("location", locationCst, "deployment grouping/facility this daemon runs in (data center, PoP, region, site, …); stamped on every record's `location`. Falls back to LOCATION env.") @@ -890,6 +903,9 @@ func buildConfig(f *mainFlags, des *xtcp_config.EnabledDeserializers) *xtcp_conf S3MaxBufferedBytes: *f.s3MaxBufferedBytes, S3SpillDir: *f.s3SpillDir, S3SpillMaxBytes: *f.s3SpillMaxBytes, + TcpWriteTimeout: durationpb.New(*f.tcpWriteTimeout), + TcpQueueDepth: uint32(*f.tcpQueueDepth), + TcpMaxBufferedBytes: *f.tcpMaxBufferedBytes, ReconcileFrequency: durationpb.New(*f.reconcileFrequency), ReconcileBeforePoll: *f.reconcileBeforePoll, MaxDumpBytes: *f.maxDumpBytes, @@ -1671,6 +1687,7 @@ func environmentOverrideConfig(c *xtcp_config.XtcpConfig, debugLevel uint) { envOverrideMarshalAndDest(c, debugLevel) envOverrideCaps(c, debugLevel) envOverrideS3Queue(c, debugLevel) + envOverrideTCPQueue(c, debugLevel) envOverrideKafka(c, debugLevel) envOverrideLabeling(c, debugLevel) envOverrideEnrichment(c, debugLevel) @@ -2398,6 +2415,23 @@ func checkNoPositional(args []string) error { return fmt.Errorf("unexpected argument %q: flags take -name value, and an empty value must be quoted (-name \"\" or -name=)", args[0]) } +// envOverrideTCPQueue applies TCP_WRITE_TIMEOUT, TCP_QUEUE_DEPTH and +// TCP_MAX_BUFFERED_BYTES, the tcp destination's delivery bounds. +func envOverrideTCPQueue(c *xtcp_config.XtcpConfig, debugLevel uint) { + if v, ok := envDuration("TCP_WRITE_TIMEOUT"); ok { + c.TcpWriteTimeout = durationpb.New(v) + logEnv("TCP_WRITE_TIMEOUT", fmt.Sprintf("c.TcpWriteTimeout:%s", v), debugLevel) + } + if v, ok := envUint32("TCP_QUEUE_DEPTH"); ok { + c.TcpQueueDepth = v + logEnv("TCP_QUEUE_DEPTH", fmt.Sprintf("c.TcpQueueDepth:%d", v), debugLevel) + } + if v, ok := envUint64("TCP_MAX_BUFFERED_BYTES"); ok { + c.TcpMaxBufferedBytes = v + logEnv("TCP_MAX_BUFFERED_BYTES", fmt.Sprintf("c.TcpMaxBufferedBytes:%d", v), debugLevel) + } +} + // envOverrideS3Queue applies S3_QUEUE_DEPTH, S3_MAX_BUFFERED_BYTES, // S3_SPILL_DIR and S3_SPILL_MAX_BYTES, the s3parquet upload queue's bounds // and its spill directory. @@ -2479,6 +2513,9 @@ func printConfigCaps(c *xtcp_config.XtcpConfig) { fmt.Println("c.MaxNetnsPerOwner:", c.MaxNetnsPerOwner) fmt.Println("c.MaxNetnsAddsPerReconcile:", c.MaxNetnsAddsPerReconcile) fmt.Println("c.S3QueueDepth:", c.S3QueueDepth) + fmt.Println("c.TcpWriteTimeout:", c.TcpWriteTimeout) + fmt.Println("c.TcpQueueDepth:", c.TcpQueueDepth) + fmt.Println("c.TcpMaxBufferedBytes:", c.TcpMaxBufferedBytes) fmt.Println("c.S3MaxBufferedBytes:", c.S3MaxBufferedBytes) fmt.Println("c.S3SpillDir:", c.S3SpillDir) fmt.Println("c.S3SpillMaxBytes:", c.S3SpillMaxBytes) diff --git a/cmd/xtcp2/xtcp2_flags_helpers_test.go b/cmd/xtcp2/xtcp2_flags_helpers_test.go index 3c213a3cb..3846658c9 100644 --- a/cmd/xtcp2/xtcp2_flags_helpers_test.go +++ b/cmd/xtcp2/xtcp2_flags_helpers_test.go @@ -89,7 +89,7 @@ const ( // mainFlags field must be a registered flag and every registered flag must // have a field. A flag added without a field, or a field that stops being // registered, is the drift this file exists to notice. - mainFlagsFieldCountCst = 143 // + treatmentConfig (embedded agent) and treatmentAttribution (journal reader) + mainFlagsFieldCountCst = 146 // + treatmentConfig (embedded agent) and treatmentAttribution (journal reader) printFlagsGoldenCst = "testdata/printflags-golden.txt" defineFlagsGoldenCst = "testdata/defineflags-golden.txt" @@ -195,6 +195,10 @@ func populatedMainFlags() *mainFlags { s3SpillDir: s("s3SpillDir-v"), s3SpillMaxBytes: u64(1193), + tcpWriteTimeout: ms(1194), + tcpQueueDepth: u(1195), + tcpMaxBufferedBytes: u64(1196), + reconcileFrequency: ms(120), reconcileBeforePoll: b(false), diff --git a/cmd/xtcp2/xtcp2_test.go b/cmd/xtcp2/xtcp2_test.go index 37061791d..b4940eef9 100644 --- a/cmd/xtcp2/xtcp2_test.go +++ b/cmd/xtcp2/xtcp2_test.go @@ -1063,6 +1063,9 @@ func TestPrintFlags(t *testing.T) { f.s3MaxBufferedBytes = &n64 f.s3SpillDir = &s f.s3SpillMaxBytes = &n64 + f.tcpWriteTimeout = &d + f.tcpQueueDepth = &n + f.tcpMaxBufferedBytes = &n64 f.reconcileFrequency = &d f.reconcileBeforePoll = &b f.maxDumpBytes = &n64 @@ -1299,6 +1302,9 @@ func TestBuildConfig(t *testing.T) { s3MaxBufferedBytes: &nl, s3SpillDir: &ssd, s3SpillMaxBytes: &ssmb, + tcpWriteTimeout: &rf, + tcpQueueDepth: &wf, + tcpMaxBufferedBytes: &nl, reconcileFrequency: &rf, reconcileBeforePoll: &rbp, maxDumpBytes: &nl, diff --git a/docs/metrics.md b/docs/metrics.md index 4d6473518..882d49179 100644 --- a/docs/metrics.md +++ b/docs/metrics.md @@ -209,8 +209,12 @@ All are in `xtcp_counts`. | `destNATS` | `FlushOnClose` | error | the final flush at shutdown failed | | `destHTTP` | `posts`, `postBytes` | count | POSTs and their bytes | | `destHTTP` | `newRequest`, `do`, `status` | error | building or sending the POST failed, or a non-2xx status | -| `destTCP`, `destUnix`, `destUnixGram` | `Writes`, `WriteBytes` | count | writes and their bytes | -| `destTCP`, `destUnix`, `destUnixGram` | `Write` | error | a write failed | +| `destTCP` | `Writes`, `WriteBytes` | count | the worker's writes and their bytes | +| `destTCP` | `Write` | error | a write failed (the conn is closed; the next attempt re-dials) | +| `destTCP` | `Dial` | error | a (re)connect dial failed | +| `destTCP` | `Reconnect` | count | a dial succeeded after a failed write/dial — delivery healed without a restart | +| `destTCP` | `queueFull` | error | an envelope was dropped from the queue, past `-tcpQueueDepth` or `-tcpMaxBufferedBytes` | +| `destTCP` | `dropped` | error | the worker dropped an envelope (attempt budget exhausted, or shutdown) | | `Inetdiager` | `udpWrites`, `udpWriteBytes` / `udpConn.Write` | count / error | the UDP destination's writes | | `destUDPIoUring`, `destUnixIoUring`, `destUnixGramIoUring` | `Writes`, `WriteBytes` / `Write` | count / error | io_uring destination writes, from their completions | | `destUDPIoUring`, `destUnixGramIoUring` / `destUnixIoUring` | `EnqueueSend` / `EnqueueWritev` | error | a write couldn't be queued on the ring | @@ -227,6 +231,18 @@ The s3parquet upload queue has its own series. Past either bound it drops the ol | `xtcp_s3_spill_total` | `result="written"\|"uploaded"\|"evicted"\|"too_large"\|"error"` | Parquet objects through `-s3SpillDir`: spilled after a failed upload, uploaded from the spill, deleted past `-s3SpillMaxBytes`, refused as larger than the bound, or a write failure or corrupt file | | `xtcp_s3_spill_objects`, `xtcp_s3_spill_bytes` | | objects and bytes waiting in the spill directory | +The tcp destination has the same queue shape (a bounded FIFO between the +poller and one write worker): `Send` never blocks, every write and dial +carries `-tcpWriteTimeout`, a failed write reconnects under full-jitter +backoff, and past 3 attempts per envelope the envelope is dropped and +counted — a wedged or unreachable sink stalls delivery, never polling. + +| metric | labels | meaning | +|---|---|---| +| `xtcp_tcp_dropped_total` | `reason="queue_depth"\|"buffered_bytes"\|"attempts"\|"shutdown"` | envelopes dropped: past `-tcpQueueDepth`/`-tcpMaxBufferedBytes` (oldest first), after the write-attempt budget exhausted (the sink was unreachable for `-tcpWriteTimeout` × attempts), or still queued at close | +| `xtcp_tcp_dropped_bytes_total` | `reason` | their marshaled bytes | +| `xtcp_tcp_buffered_bytes` | `stage="queue"` | bytes held: envelopes awaiting the worker | + ### Enrichment `enrich*.go`. Updates per refresh or per event, not per record. diff --git a/docs/redteam-harness.md b/docs/redteam-harness.md index c6c7995b1..166c1f653 100644 --- a/docs/redteam-harness.md +++ b/docs/redteam-harness.md @@ -229,7 +229,7 @@ definition behind `REDTEAM_ROUTER=1`): attacker↔victim vantage — distinct from libvirt's default net so the DoD "no networks beyond the defined ones" assertion is `virsh net-list`-checkable; - `victim` provisioning: `common.sh` → upload `.gen/*.tar.gz` → `victim.sh - ` (matrix as + ` (matrix as argv, validated by `lib/matrix.sh` — env → argv translation happens in the Vagrantfile so `vagrant provision` alone re-applies a matrix change). The Phase 4 axes: `XTCP2_NOFILE` (`default` = docker's own 524287 on diff --git a/docs/redteam-implementation.md b/docs/redteam-implementation.md index 8278a53b7..3d208f7a6 100644 --- a/docs/redteam-implementation.md +++ b/docs/redteam-implementation.md @@ -267,6 +267,7 @@ completing the RT-4 suite and RT-11 tiers 1–2. - [x] Phase 4 part 1 complete: rt-4-1 **BLOCKED** (8/8 — the ladder + the amplifier finding), rt-11-2 **BLOCKED** (11/11 — the crossover refuted at a pinned budget, the RT-11 ops answer), rt-4-2 **BLOCKED** (11/11 — the 5 s absolute ReadHeaderTimeout makes the slowloris premise unreachable; 26 KiB/conn while alive), rt-4-5 **BLOCKED** (9/9 — the in-flight cap engages on the slow paths, 10x 503 on `/metrics-all`; the fast path self-throttles). New tools: sockfill `-remote` (the ladder), slowloris (the drip), grpcidle (the gRPC pin) — all static, in the attacker tools tar; two new deploy axes `XTCP2_NOFILE`/`XTCP2_CPUS`. - [x] Phase 4 part 2 complete (the stream/gRPC suite): rt-4-3 **BLOCKED** (11/11 — read-cred oversize answered PermissionDenied at the method ACL before the 4 MB cap is even reachable; admin-cred oversize answered ResourceExhausted; a 10×20 reading storm cost a linear 299 goroutines, 1.1 M records, no leak 71→299→71), rt-11-3 **CONFIRMED** (11/11 — **the strongest RT-11 crossover**: ONE never-reading authenticated stream took the catcher 1993 → 0 lines/6 s; `flatRecordServiceSend`'s blocking per-client Send runs per record on the decode hot path, so one stalled stream backpressures the whole fleet; API stayed 200 — the tier-2 split; recovery ≤6 s, no leak), rt-4-4 **BLOCKED** (11/11 — RSS slope −17 KiB/s under 4 paced readers, and the backpressure finding: the catcher collapsed 1494 → 0 lines/6 s with EXACTLY 32 records in 240 s — the paced wedge, same root cause as rt-11-3), rt-2-9 **CONFIRMED** (7/7 — stream-expiry carry-over: 2158/2200 records flowed ~50 s past the skew-0 window; file-don't-fix, ops note: key rotation does not break held-open streams). New tool: grpcstorm (storm/oversize/wedge/paced/HMAC shapes, static, in the attacker tools tar); new deploy axis `XTCP2_PPROF` (a loopback, token-gated debug listener for goroutine-count asserts — an observability axis, not a surface change); rt-2-2's Phase-4 deferral landed as row rt-2-9. Full matrix regression: **30 scenarios, 29 PASS + 1 harness race fixed + re-verified solo** — rt-2-2's in-minute replay minted at :44 and the tcpdump window pushed the replay past the boundary (correct 401 under skew 0; the assert raced, not the product): the guard now lands the mint at 05..18 and re-mints once if a slow provision still crosses. - [x] Phase 4 part 3 complete (the delivery-outage suite): rt-4-7 **BLOCKED** (15/15, the split verdict — the s3 queue sink: RSS slope 70 KiB/s, the outage counted (`destS3Parquet/upload/error`, `s3_dropped_total=8`), recovery on endpoint return (objects 1270→2375); the tcp half: the permanent blind measured — counters light immediately, polling continues, the catcher restart changes nothing, only a daemon restart re-dials), rt-11-4 **BLOCKED** (14/14 — 300,008 thief sockets, victim coverage lag 0 s (parallel per-netns dumps + the 1 s poll-timeout valve), PollTimeout firing every cycle, RSS 29→31 MiB, and the amplifier at scale: 211,244 lines/6 s ≈ 100× baseline; the walkable budget engaged `xtcp_poll_degraded_total{level="sample"}` with victims still at 0 s lag), rt-11-5 **CONFIRMED** (16/16 — the L2 freeze: a CAP_NET_RAW sibling ARP-blackholes the sink via a 200 ms gratuitous-reply loop; the poller FREEZES in the blocked Write (no deadline, sync on the poll goroutine) for the whole retransmit window (~15.4 min at the prod default) with zero error counters and scrape 200; de-poison mid-window = full catch-up with no loss; the window closed = counters light + delivery permanently dead). New tool: arppoison (static, in the attacker tools tar); new deploy axes `XTCP2_MAX_RECORDS` (rt-11-4's walkable budget) and `XTCP2_SINK_IP` (rt-11-5's dedicated sink alias — poisoning the gateway takes the docker-proxy replies down with it, measured); the freeze finding filed as #345. Full matrix regression: **33 scenarios, 32 PASS + 1 tool race fixed + re-verified solo** — rt-4-3's oversize probe (leg B) raced the transport's arrival-based recv-limit kill against a fanned-out record beating the 8 MB frame on a fresh slow-start conn (measured OK 3/3 in the matrix, ResourceExhausted 12/12 by hand): the probe now drains Recv to the terminal verdict. +- [x] **Product fixes #345 + #339 landed with the expectation flips in the same change** (the S2 pair the delivery-outage suite surfaced): the tcp destination is now a bounded queue + worker — `Send` never blocks (the poller can never freeze on the sink), every write AND dial carries `tcp_write_timeout` (config field 120, validate-gted/lte'd to [1s, 1h], Go belt `resolveTCPWriteTimeout`, default 30 s, CLI `-tcpWriteTimeout`/`TCP_WRITE_TIMEOUT` env), the queue is `envelopeQueue` shared with s3 (moved untagged to destinations_queue.go — tcp is in every flavor including stdlib-only), and a failed write reconnects under full-jitter backoff (the `backoffWindow` cap derived like s3's: clamp(poll_frequency/10, 1s, 1h)) with 3 attempts per envelope, then drop-and-count. New counters: `xtcp_tcp_dropped_total{reason}` / `_bytes_total` / `xtcp_tcp_buffered_bytes{stage}` + `destTCP` Dial/Reconnect/queueFull/dropped. Verified by the same attacks that pinned the bugs: **rt-11-5 MITIGATED 18/18** (polls keep issuing through the stall 25→47/32 s — the freeze gone; Write/error=9, Dial/error=8, drops=3 while dark; de-poison heals with NO restart, reconnects=1; second cycle repeats — a REACHABLE neighbor entry ignores gratuitous ARP until STALE ~30 s, the flip is now a bounded wait) and **rt-4-7 BLOCKED 15/15** (the catcher restart heals delivery, reconnects=1, 2482 lines/6 s — no daemon restart). Harness: deploy axis `XTCP2_TCP_WRITE_TIMEOUT` (Vagrantfile arg 12). Harness lesson: `promLabels` order is function, VARIABLE, type — `WithLabelValues("destTCP","Write","error")` emits `type="error",variable="Write"`; grep the emitted order or the assert reads empty. - [ ] 24 h churn variant runs clean overnight once (logged evidence), or its blocker filed. (Phase 4 part 4) - [ ] rt-11-5 shows delivery metrics lighting up during the L2 kill (assert specific series non-zero), or files the observability gap. - [ ] rt-11-7 either survives or produces a crashing fixture committed under the repo's fixture path and a linked parser issue. diff --git a/docs/redteam-plan.md b/docs/redteam-plan.md index d88514b0c..136412dce 100644 --- a/docs/redteam-plan.md +++ b/docs/redteam-plan.md @@ -182,7 +182,7 @@ left auth disabled. These test what admin access is worth. | rt-4-4 | Slow FlatRecords consumer | open authenticated stream, read 1 msg/30 s, never cancel | gRPC flow control should backpressure the daemon pipeline | **VERIFIED 2026-11-25 (BLOCKED on the OOM axis — and the backpressure is the finding)**: 4 paced readers (1 msg/30 s) for 240 s — RSS slope −17 KiB/s (29 MiB flat; envelope row/byte caps + record pool hold), daemon alive. But sink delivery COLLAPSED to the readers' pace: catcher 1494 → **0 lines/6 s** while held, and exactly 32 records crossed in 240 s — the 4 × 8 paced reads, no more. `flatRecordServiceSend`'s blocking per-client Send runs on the record hot path, so the whole pipeline (envelope flush included) is coupled to the slowest reader: the rt-11-3 wedge, paced. 1 h soak via `RT_SOAK=1h` (env-gated, not in the matrix) | daemon memory bounded under stalled consumers for 1 h; no OOM; record the envelope-buffer high-water mark | S3 | | rt-4-5 | Scrape storm | 100 parallel scrapes of `/metrics`, `/metrics-all`, detail paths | 10 in-flight cap on main path; category caps 4; 10 s handler timeouts | **VERIFIED 2026-11-25 (BLOCKED)**: the fast path self-throttles (100x 200, p99 11 ms — the ~17 ms body answers faster than staggered curls stack 10-deep) and the cap engages where a pileup could form: `/metrics-all` 10x 503, `/metrics/link` 3x 503, zero failed conns, no pileup (clean scrape 1.9 ms after), healthz 200, catcher flowing throughout | 503/queue behavior matches docs; no pileup; p99 latency recorded | S4 | | rt-4-6 | Namespace/socket churn storm | run `nsTest` + a script creating/destroying netns and 10k sockets rapidly in co-tenant containers visible to the daemon | reconcile before each poll; retry loops for vanished veths | no fd leak, no goroutine leak, bounded CPU, daemon survives 24 h churn (ties into TODO-SOON AI098) | S2 | -| rt-4-7 | Broker-outage buffering | kill the in-VM Redpanda; watch daemon | franz-go backoff with jitter (design doc) | **VERIFIED 2026-11-26 (BLOCKED on the queue sink — split verdict, both halves measured)**: half 2 (s3parquet→Garage, the queue-shaped sink): daemon memory bounded while the sink is down (RSS slope 70 KiB/s; queue depth 16 / 64 MiB, oldest-first eviction), the outage is VISIBLE and COUNTED (`destS3Parquet/upload/error=1` after the backoff, `s3_dropped_total=8`), and minio dials per request so the daemon RECOVERS on endpoint return (objects 1270 → 2375) — the plan's expectation holds. Half 1 (tcp, the catcher): the Write errors immediately on the dead conn (FIN/RST — no stall), the counters light up, polling continues — but the blind is **PERMANENT**: a catcher restart changes nothing (0 lines/6 s with the catcher back; tcpDest never reconnects, #339), only a daemon restart re-dials (measured). The permanent-blind finding is asserted in-row and filed under #339 | memory bounded while dest is down; recovers on broker return; no unbounded queue | S3 | +| rt-4-7 | Broker-outage buffering | kill the in-VM Redpanda; watch daemon | franz-go backoff with jitter (design doc) | **VERIFIED 2026-11-26 (BLOCKED on the queue sink — split verdict, both halves measured)**: half 2 (s3parquet→Garage, the queue-shaped sink): daemon memory bounded while the sink is down (RSS slope 70 KiB/s; queue depth 16 / 64 MiB, oldest-first eviction), the outage is VISIBLE and COUNTED (`destS3Parquet/upload/error=1` after the backoff, `s3_dropped_total=8`), and minio dials per request so the daemon RECOVERS on endpoint return (objects 1270 → 2375) — the plan's expectation holds. Half 1 (tcp, the catcher): the Write errors immediately on the dead conn (FIN/RST — no stall), the counters light up, polling continues — but the blind is **PERMANENT**: a catcher restart changes nothing (0 lines/6 s with the catcher back; tcpDest never reconnects, #339), only a daemon restart re-dials (measured). The permanent-blind finding is asserted in-row and filed under #339. **FIXED same day (#339 landed with this expectation flip)**: the tcp destination is now a bounded queue + worker — Send never blocks, every write and dial carries `tcp_write_timeout`, a failed write reconnects under full-jitter backoff. Re-verified **BLOCKED 15/15** (evidence `20261126T110001-209ab068a-1548426`): the outage is counted (`destTCP` Write/error=24, Dial/error=25, `xtcp_tcp_dropped_total=9`), polls continue, and **the catcher restart heals delivery with NO daemon restart** (reconnects=1, 2482 lines/6 s after return) — the plan's expectation now holds on BOTH halves | memory bounded while dest is down; recovers on broker return; no unbounded queue | S3 | | rt-4-8 | Admin-triggered poll amplification | (needs admin) poll burst against a host with 100 containers × 250 sockets | full-dump per poll | latency/CPU bounded; assert cgroup protection works | S3 | ### RT-5 Host attacks through xtcp2 (netlink and capabilities) @@ -275,7 +275,7 @@ listeners; true with `--network host` or published ports): | rt-11-2 | FD exhaustion across the listener boundary | `max_connections`/accept-rate are not wired (documented). Thousands of idle connections to :9088/:8889 exhaust the process FD budget. Unlike rt-4-1, the target is not the API but the **collection path** | RLIMIT_NOFILE is per-process, idle timeouts 30–60 s | **VERIFIED 2026-11-25 (BLOCKED — the crossover REFUTED by design, measured at a perfect pin)**: idle gRPC conns (MaxConnectionIdle 15 min, no churn — the strongest pin available; HTTP shapes cannot pin at all, both reaped by the 5 s absolute header cap) held the budget at exactly 4096/4096; the API went dark (scrape 000, `accept4: too many open files`) and the catcher KEPT FLOWING (17146 lines/6s): the collection path holds its FDs persistently (the /proc scanner's single `unix.Open` in NewScanner; per-namespace netlink sockets created once at discovery) and opens ZERO new FDs per poll in steady state. FD exhaustion starves the API, never the records — the RT-11 ops answer | measure at which connection count polls start failing (`xtcp_counts` errors) vs. metrics still 200; finding = the unwired connection caps cross from API DoS into collection DoS (REFUTED — they do not cross) | | rt-11-3 | gRPC stream-slot grazing | 20 streams per connection, no global stream or connection quota; slow-reading `FlatRecords` streams and reflection/health spam add goroutines and buffer pressure to the shared process | 4 MB message cap, per-conn stream cap | **VERIFIED 2026-11-25 (CONFIRMED — the premise understated: grazing is not "bounded degradation", it is a full collection crossover)**: ONE never-reading authenticated `FlatRecords` stream (a read credential suffices) wedges the decode fleet — catcher 1993 → **0 lines/6 s** while held. Mechanism: `flatRecordServiceSend` (grpc_flatRecordService.go:231) runs per record on the hot path (deserialize.go:274) and does a blocking per-client `Send` under a per-stream mutex; a never-reading stream exhausts its ~64 KiB HTTP/2 window in ~1 poll cycle and the `Send` then blocks INDEFINITELY (no Send timeout; the only unblock is the client closing). Every decoder fans out to every client, so one stalled stream stalls them all. While held: API stays 200 (the tier-2 split — FD attacks blind the API, stream grazing blinds the collection), goroutines bounded (69→75), daemon alive. Release: catcher resumes ≤6 s (the catch-up flush), no leak (69→75→69 — the handler's deferred map Delete). **Product finding pinned (#337)**: a Send timeout or a decoupled fan-out (buffered channel per stream, drop-on-full) so one stalled consumer cannot backpressure the pipeline | bounded degradation only; assert no leak after churn (goroutine count via loopback pprof) | S2 | | rt-11-4 | Own-netns dump amplification (poll-budget theft) | every cycle dumps *every* namespace on `-netlinkers 2` decoders with a 5 s per-namespace timeout. Attacker packs its own netns with tens of thousands of sockets (listener accept-queue backlog + timewait via self-SYN-flood + many listeners) so its dump alone eats seconds of the 10 s cadence; the host's and victims' dumps slide late or the cycle overruns | per-namespace `-timeout 5s`; poll timeout < frequency validation | **VERIFIED 2026-11-26 (BLOCKED — the premise loses on both valves)**: sockfill packed the attacker netns with **300,008 sockets** (150K loopback pairs) and the victims never noticed: coverage lag **0 s** (the dumps run PARALLEL per netns — one netlink socket + netlinkers each — so the thief only delays its own records), `PollTimeout` fired every cycle (the 1 s wall-clock valve: the thief's dump outlasts it, the cycle still advances; pollToDone p99 2.2 s), polls kept cadence, RSS 29→31 MiB. At the walkable budget (`XTCP2_MAX_RECORDS=50000`) the gate engaged exactly as designed: `xtcp_poll_degraded_total{level="sample"}` — the thief's namespace port-shard-sampled — while the victims kept full coverage (lag 0 s). The socket bomb's remaining cost is the telemetry amplifier (#342): **211,244 lines/6 s** at the catcher (~100× baseline — the attack's own sockets are reported) | measure poll-cycle latency and per-namespace coverage lag vs. attacker socket count; assert the timeout actually caps the thief | S4 | -| rt-11-5 | L2 kill of the delivery path | if the destination (Kafka/Redpanda, S3 endpoint container) is a sibling on the same bridge, both endpoints are on-path to each other: spoofed RSTs or ARP blackholing of the daemon→broker TCP. franz-go retries with jitter forever, so the daemon looks healthy while delivering nothing | jittered backoff (fleet design); reconnect | **VERIFIED 2026-11-26 (CONFIRMED — stronger than the premise: an L2 stall does not just blind delivery, it freezes COLLECTION)**: a privileged co-tenant (CAP_NET_RAW, sibling on the bridge — a dedicated docker0 alias keeps the gateway path clean so the API stays 200) ARP-blackholed the sink with a 200 ms gratuitous-reply loop (arppoison; existing entries flip with default arp_accept). Measured timeline: delivery dies instantly (0 lines/6 s); the Writes keep SUCCEEDING locally while SO_SNDBUF absorbs envelopes; the buffer fills → the Write blocks → **the whole poller freezes** (polls frozen 14 s at tcp_retries2=8; ~15.4 min at the prod default retries2=15) with **zero error counters** and scrape 200 — fully silent. De-poison mid-window: the buffered envelopes drain, the catcher catches up (1667 lines/6 s), no error counters, **no loss** — the blind is latency, not loss. The window closed (retries2=3): counters light up only then (the row's visibility premise holds, after the gap), polls resume, and delivery is permanently dead until a daemon restart (no reconnect, #339). **Product finding filed (#345)**: SetWriteDeadline + decouple the flush from the poll goroutine | assert delivery-failure counters/metrics make the blind *visible* (`xtcp_counts` delivery errors, `xtcp_gauges` delivery health); finding: sustained L2 kill = silent-ish outage without an external watchdog | S2 | +| rt-11-5 | L2 kill of the delivery path | if the destination (Kafka/Redpanda, S3 endpoint container) is a sibling on the same bridge, both endpoints are on-path to each other: spoofed RSTs or ARP blackholing of the daemon→broker TCP. franz-go retries with jitter forever, so the daemon looks healthy while delivering nothing | jittered backoff (fleet design); reconnect | **VERIFIED 2026-11-26 (CONFIRMED — stronger than the premise: an L2 stall does not just blind delivery, it freezes COLLECTION)**: a privileged co-tenant (CAP_NET_RAW, sibling on the bridge — a dedicated docker0 alias keeps the gateway path clean so the API stays 200) ARP-blackholed the sink with a 200 ms gratuitous-reply loop (arppoison; existing entries flip with default arp_accept). Measured timeline: delivery dies instantly (0 lines/6 s); the Writes keep SUCCEEDING locally while SO_SNDBUF absorbs envelopes; the buffer fills → the Write blocks → **the whole poller freezes** (polls frozen 14 s at tcp_retries2=8; ~15.4 min at the prod default retries2=15) with **zero error counters** and scrape 200 — fully silent. De-poison mid-window: the buffered envelopes drain, the catcher catches up (1667 lines/6 s), no error counters, **no loss** — the blind is latency, not loss. The window closed (retries2=3): counters light up only then (the row's visibility premise holds, after the gap), polls resume, and delivery is permanently dead until a daemon restart (no reconnect, #339). **Product finding filed (#345)**: SetWriteDeadline + decouple the flush from the poll goroutine. **FIXED same day (#345 + #339 landed with this expectation flip)**: the tcp destination queues to a bounded worker (`Send` never blocks the poller), every write and dial carries `tcp_write_timeout` (default 30 s, deploy axis `XTCP2_TCP_WRITE_TIMEOUT`; this run pins 5 s), and a failed write reconnects under full-jitter backoff. Re-verified **MITIGATED 18/18** (evidence `20261126T111738-209ab068a-1688938`, two full poison cycles): polls keep issuing through the stall (25→47 over 32 s — the freeze is gone), the blind is VISIBLE and COUNTED while dark (Write/error=9, Dial/error=8, `xtcp_tcp_dropped_total=3`, scrape 200), de-poison heals delivery with NO daemon restart (reconnects=1, 2498 lines/6 s), and the second cycle repeats the whole arc (Write/error 10→14, polls 77→82, heals again at 2500 lines/6 s). The residual — delivery still stalls while the route is blackholed — is physics, bounded by the deadline and visible in the counters | assert delivery-failure counters/metrics make the blind *visible* (`xtcp_counts` delivery errors, `xtcp_gauges` delivery health); finding: sustained L2 kill = silent-ish outage without an external watchdog | S2 (fixed) | | rt-11-6 | Host noisy-neighbor starvation | CPU fork bomb without cpu quota, memory pressure toward OOM (xtcp2 has real RSS), **conntrack-table exhaustion** (mass short-lived flows through host NAT → `nf_conntrack: table full` drops the daemon's outbound SYN to Kafka/S3), pid-limit exhaustion breaking the `/proc` walk | container cgroup limits are deployment policy | assert per-link effects and that each has a metric the fleet can alert on; finding: "absence of metrics must itself alert" — an external liveness watchdog is a deployment requirement | | rt-11-7 | Own-netns parser crash attempt | pathological own netns (max-length ifnames, huge neighbor/route tables, nested veth/macvlan) hoping for a typed-parser panic; a panic in the poll path takes the whole daemon (the link-monitor panic-isolation issue is documented as open) | fixture-tested parsers, fuzz targets | daemon survives; any crash = S1-class finding feeding the fixture corpus | | rt-11-8 | Self-churn + reconcile amplification | rapid own socket churn and `docker restart` loops make discovery/dockermeta/reconcile (which runs before each poll) burn the cycle; AI098 warn-storm | churn handling, retry logic | bounded reconcile cost; no coverage lag on victim namespaces | diff --git a/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc b/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc index 02c0d1cd1..add0ec0ca 100644 --- a/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc +++ b/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc @@ -2550,8 +2550,8 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const offsetof(ParseTableT_, field_lookup_table), 3758096895, // skipmap offsetof(ParseTableT_, field_entries), - 96, // num_field_entries - 16, // num_aux_entries + 99, // num_field_entries + 17, // num_aux_entries offsetof(ParseTableT_, aux_entries), class_data, nullptr, // post_loop_handler @@ -2665,15 +2665,15 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const 61695, 37, 4095, 41, 32, 45, - 33791, 60, - 16383, 65, - 63736, 67, - 65475, 73, - 65535, 77, - 58360, 77, - 49039, 83, - 255, 87, - 65531, 95, + 33784, 60, + 16383, 68, + 63736, 70, + 65475, 76, + 65535, 80, + 58360, 80, + 49039, 86, + 255, 90, + 65531, 98, 65535, 65535 }}, {{ // uint64 nl_timeout_milliseconds = 10 [json_name = "nlTimeoutMilliseconds", (.buf.validate.field) = { @@ -2719,25 +2719,25 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_frequency_), _Internal::kHasBitsOffset + 51, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_before_poll_), _Internal::kHasBitsOffset + 71, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_before_poll_), _Internal::kHasBitsOffset + 72, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_), _Internal::kHasBitsOffset + 63, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_), _Internal::kHasBitsOffset + 64, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_timeout_), _Internal::kHasBitsOffset + 52, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_per_owner_), _Internal::kHasBitsOffset + 64, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_per_owner_), _Internal::kHasBitsOffset + 65, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_adds_per_reconcile_), _Internal::kHasBitsOffset + 65, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_adds_per_reconcile_), _Internal::kHasBitsOffset + 66, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.write_files_), _Internal::kHasBitsOffset + 66, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.write_files_), _Internal::kHasBitsOffset + 67, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // string capture_path = 51 [json_name = "capturePath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.capture_path_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_write_files_), _Internal::kHasBitsOffset + 67, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_write_files_), _Internal::kHasBitsOffset + 68, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_level_), _Internal::kHasBitsOffset + 68, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_level_), _Internal::kHasBitsOffset + 69, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_prometheus_), _Internal::kHasBitsOffset + 72, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_prometheus_), _Internal::kHasBitsOffset + 73, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string dest = 60 [json_name = "dest", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_), _Internal::kHasBitsOffset + 25, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string marshal_to = 61 [json_name = "marshalTo", (.buf.validate.field) = { @@ -2747,9 +2747,9 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string xtcp_proto_file = 63 [json_name = "xtcpProtoFile", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.xtcp_proto_file_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_bytes_), _Internal::kHasBitsOffset + 69, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_bytes_), _Internal::kHasBitsOffset + 70, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_rows_), _Internal::kHasBitsOffset + 70, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_rows_), _Internal::kHasBitsOffset + 71, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // string topic = 80 [json_name = "topic", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.topic_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string kafka_schema_url = 81 [json_name = "kafkaSchemaUrl", (.buf.validate.field) = { @@ -2771,31 +2771,37 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string s3_secret_key = 105 [json_name = "s3SecretKey", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_secret_key_), _Internal::kHasBitsOffset + 35, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_skip_bucket_probe_), _Internal::kHasBitsOffset + 73, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_skip_bucket_probe_), _Internal::kHasBitsOffset + 74, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_allow_insecure_), _Internal::kHasBitsOffset + 74, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_allow_insecure_), _Internal::kHasBitsOffset + 75, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string s3_ca_file = 108 [json_name = "s3CaFile", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_ca_file_), _Internal::kHasBitsOffset + 36, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_parquet_flush_threshold_bytes_), _Internal::kHasBitsOffset + 75, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_parquet_flush_threshold_bytes_), _Internal::kHasBitsOffset + 76, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration s3_flush_interval = 111 [json_name = "s3FlushInterval", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_interval_), _Internal::kHasBitsOffset + 54, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_jitter_pct_), _Internal::kHasBitsOffset + 76, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_jitter_pct_), _Internal::kHasBitsOffset + 77, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_threshold_jitter_pct_), _Internal::kHasBitsOffset + 77, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_threshold_jitter_pct_), _Internal::kHasBitsOffset + 78, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_max_attempts_), _Internal::kHasBitsOffset + 78, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_max_attempts_), _Internal::kHasBitsOffset + 79, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration s3_upload_backoff_cap = 115 [json_name = "s3UploadBackoffCap", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_backoff_cap_), _Internal::kHasBitsOffset + 55, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_queue_depth_), _Internal::kHasBitsOffset + 79, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_queue_depth_), _Internal::kHasBitsOffset + 80, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_max_buffered_bytes_), _Internal::kHasBitsOffset + 80, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_max_buffered_bytes_), _Internal::kHasBitsOffset + 81, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string s3_spill_dir = 118 [json_name = "s3SpillDir", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_dir_), _Internal::kHasBitsOffset + 37, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_max_bytes_), _Internal::kHasBitsOffset + 81, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_max_bytes_), _Internal::kHasBitsOffset + 82, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_write_timeout_), _Internal::kHasBitsOffset + 56, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_queue_depth_), _Internal::kHasBitsOffset + 84, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_max_buffered_bytes_), _Internal::kHasBitsOffset + 83, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string hostname = 130 [json_name = "hostname", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.hostname_), _Internal::kHasBitsOffset + 38, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string location = 131 [json_name = "location", (.buf.validate.field) = { @@ -2807,67 +2813,67 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string daemon_version = 134 [json_name = "daemonVersion", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.daemon_version_), _Internal::kHasBitsOffset + 42, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv4_ttl_), _Internal::kHasBitsOffset + 82, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv4_ttl_), _Internal::kHasBitsOffset + 85, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv6_hop_limit_), _Internal::kHasBitsOffset + 83, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv6_hop_limit_), _Internal::kHasBitsOffset + 86, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listener_auth_), _Internal::kHasBitsOffset + 56, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listener_auth_), _Internal::kHasBitsOffset + 57, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.prometheus_listener_), _Internal::kHasBitsOffset + 57, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.prometheus_listener_), _Internal::kHasBitsOffset + 58, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.admin_listener_auth_), _Internal::kHasBitsOffset + 58, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.admin_listener_auth_), _Internal::kHasBitsOffset + 59, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_port_), _Internal::kHasBitsOffset + 84, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_port_), _Internal::kHasBitsOffset + 87, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_listener_), _Internal::kHasBitsOffset + 59, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_listener_), _Internal::kHasBitsOffset + 60, 12, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated .xtcp_config.v1.Listener listeners = 162 [json_name = "listeners", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listeners_), _Internal::kHasBitsOffset + 22, 12, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listeners_), _Internal::kHasBitsOffset + 22, 13, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // string pyroscope_url = 170 [json_name = "pyroscopeUrl", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_url_), _Internal::kHasBitsOffset + 43, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string pyroscope_app_name = 171 [json_name = "pyroscopeAppName", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_app_name_), _Internal::kHasBitsOffset + 44, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_sample_hz_), _Internal::kHasBitsOffset + 85, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_sample_hz_), _Internal::kHasBitsOffset + 88, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_upload_interval_sec_), _Internal::kHasBitsOffset + 86, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_upload_interval_sec_), _Internal::kHasBitsOffset + 89, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.resolve_container_id_), _Internal::kHasBitsOffset + 87, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.resolve_container_id_), _Internal::kHasBitsOffset + 90, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_container_enable_), _Internal::kHasBitsOffset + 88, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_container_enable_), _Internal::kHasBitsOffset + 91, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string docker_socket_path = 202 [json_name = "dockerSocketPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.docker_socket_path_), _Internal::kHasBitsOffset + 45, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_lldp_enable_), _Internal::kHasBitsOffset + 89, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_lldp_enable_), _Internal::kHasBitsOffset + 92, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string lldpd_socket_path = 211 [json_name = "lldpdSocketPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.lldpd_socket_path_), _Internal::kHasBitsOffset + 46, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string lldpd_version_hint = 212 [json_name = "lldpdVersionHint", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.lldpd_version_hint_), _Internal::kHasBitsOffset + 47, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_nic_enable_), _Internal::kHasBitsOffset + 90, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_nic_enable_), _Internal::kHasBitsOffset + 93, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_count_), _Internal::kHasBitsOffset + 91, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_count_), _Internal::kHasBitsOffset + 94, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // repeated string uplink_interfaces = 222 [json_name = "uplinkInterfaces", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_interfaces_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, // bool populate_nsid = 230 [json_name = "populateNsid"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.populate_nsid_), _Internal::kHasBitsOffset + 92, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.populate_nsid_), _Internal::kHasBitsOffset + 95, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_asn_enable_), _Internal::kHasBitsOffset + 93, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_asn_enable_), _Internal::kHasBitsOffset + 96, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string asn_db_path = 241 [json_name = "asnDbPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_db_path_), _Internal::kHasBitsOffset + 48, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_refresh_interval_), _Internal::kHasBitsOffset + 60, 13, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_refresh_interval_), _Internal::kHasBitsOffset + 61, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string ipmeta_bootstrap_path = 243 [json_name = "ipmetaBootstrapPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipmeta_bootstrap_path_), _Internal::kHasBitsOffset + 49, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string ipmeta_cache_path = 244 [json_name = "ipmetaCachePath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipmeta_cache_path_), _Internal::kHasBitsOffset + 50, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_locality_enable_), _Internal::kHasBitsOffset + 94, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_locality_enable_), _Internal::kHasBitsOffset + 97, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_refresh_interval_), _Internal::kHasBitsOffset + 61, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_refresh_interval_), _Internal::kHasBitsOffset + 62, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_events_enable_), _Internal::kHasBitsOffset + 95, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_events_enable_), _Internal::kHasBitsOffset + 98, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.link_monitor_), _Internal::kHasBitsOffset + 62, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.link_monitor_), _Internal::kHasBitsOffset + 63, 16, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ #ifndef PROTOBUF_MESSAGE_GLOBALS @@ -2911,6 +2917,11 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Duration_globals_}, #endif #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Duration_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS {::_pbi::TcParser::GetTable<::xtcp_config::v1::ListenerAuth>()}, #else {::_pbi::FieldAuxMessageGlobals(), &::xtcp_config::v1::ListenerAuth_globals_}, @@ -2952,7 +2963,7 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const #endif }}, {{ - "\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\0\0\0\4\12\13\17\0\0\5\20\0\21\13\11\11\11\15\15\0\0\12\0\0\0\0\0\0\0\0\14\0\10\10\5\3\16\0\0\0\0\0\0\0\0\15\22\0\0\0\0\22\0\21\22\0\0\21\0\0\13\0\25\21\0\0\0\0\0\0\0\0\0\0\0" + "\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\0\0\0\4\12\13\17\0\0\5\20\0\21\13\11\11\11\15\15\0\0\12\0\0\0\0\0\0\0\0\14\0\0\0\0\10\10\5\3\16\0\0\0\0\0\0\0\0\15\22\0\0\0\0\22\0\21\22\0\0\21\0\0\13\0\25\21\0\0\0\0\0\0\0\0" "xtcp_config.v1.XtcpConfig" "capture_path" "dest" @@ -3114,6 +3125,7 @@ inline constexpr XtcpConfig::Impl_::Impl_( kafka_produce_timeout_{nullptr}, s3_flush_interval_{nullptr}, s3_upload_backoff_cap_{nullptr}, + tcp_write_timeout_{nullptr}, listener_auth_{nullptr}, prometheus_listener_{nullptr}, admin_listener_auth_{nullptr}, @@ -3140,6 +3152,8 @@ inline constexpr XtcpConfig::Impl_::Impl_( s3_queue_depth_{0u}, s3_max_buffered_bytes_{::uint64_t{0u}}, s3_spill_max_bytes_{::uint64_t{0u}}, + tcp_max_buffered_bytes_{::uint64_t{0u}}, + tcp_queue_depth_{0u}, ipv4_ttl_{0u}, ipv6_hop_limit_{0u}, grpc_port_{0u}, @@ -4310,7 +4324,7 @@ const ::uint32_t 22, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_._has_bits_), - 99, // hasbit index offset + 102, // hasbit index offset PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.nl_timeout_milliseconds_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.poll_frequency_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.poll_timeout_), @@ -4371,6 +4385,9 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.s3_max_buffered_bytes_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.s3_spill_dir_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.s3_spill_max_bytes_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.tcp_write_timeout_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.tcp_queue_depth_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.tcp_max_buffered_bytes_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.hostname_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.location_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.label_), @@ -4428,22 +4445,22 @@ const ::uint32_t 20, 21, 51, - 71, - 63, - 52, + 72, 64, + 52, 65, 66, - 24, 67, + 24, 68, - 72, + 69, + 73, 25, 26, 0, 1, - 69, 70, + 71, 27, 28, 53, @@ -4454,55 +4471,58 @@ const ::uint32_t 33, 34, 35, - 73, 74, - 36, 75, - 54, + 36, 76, + 54, 77, 78, - 55, 79, + 55, 80, - 37, 81, + 37, + 82, + 56, + 84, + 83, 38, 39, 40, 41, 42, - 82, - 83, - 56, + 85, + 86, 57, 58, - 84, 59, + 87, + 60, 22, 43, 44, - 85, - 86, - 87, 88, - 45, 89, - 46, - 47, 90, 91, - 23, + 45, 92, + 46, + 47, 93, + 94, + 23, + 95, + 96, 48, - 60, + 61, 49, 50, - 94, - 61, - 95, + 97, 62, + 98, + 63, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -4538,8 +4558,8 @@ static const ::_pbi::MigrationSchema {104, sizeof(::xtcp_config::v1::Listener)}, {117, sizeof(::xtcp_config::v1::LinkMonitorConfig)}, {176, sizeof(::xtcp_config::v1::XtcpConfig)}, - {371, sizeof(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse)}, - {378, sizeof(::xtcp_config::v1::EnabledDeserializers)}, + {377, sizeof(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse)}, + {384, sizeof(::xtcp_config::v1::EnabledDeserializers)}, }; static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const file_message_globals[] = { @@ -4698,7 +4718,7 @@ const char descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto[ "(\0132\031.google.protobuf.DurationB\016\272H\013\252\001\010\"\004\010" "\200\243\0052\000R\rlearnDeadlineB\020\n\016_error_classesB\025" "\n\023_metrics_categoriesB\032\n\030_metrics_interf" - "ace_pathsB\023\n\021_metrics_all_path\"\255-\n\nXtcpC" + "ace_pathsB\023\n\021_metrics_all_path\"\372.\n\nXtcpC" "onfig\022F\n\027nl_timeout_milliseconds\030\n \001(\004B\016" "\272H\0132\006\030\240\215\006(\000\310\001\001R\025nlTimeoutMilliseconds\022U\n" "\016poll_frequency\030\013 \001(\0132\031.google.protobuf." @@ -4787,109 +4807,114 @@ const char descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto[ "feredBytes\022G\n\014s3_spill_dir\030v \001(\tB%\272H\"r\035\030" "\200 2\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R\ns3Spill" "Dir\0223\n\022s3_spill_max_bytes\030w \001(\004B\006\272H\003\310\001\000R" - "\017s3SpillMaxBytes\022B\n\010hostname\030\202\001 \001(\tB%\272H\"" - "r\035\030\375\0012\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R\010host" - "name\022B\n\010location\030\203\001 \001(\tB%\272H\"r\035\030\375\0012\030^[^\\x" - "00-\\x1f\\x7f-\\x9f]*$\310\001\000R\010location\022;\n\005labe" - "l\030\204\001 \001(\tB$\272H!r\034\030(2\030^[^\\x00-\\x1f\\x7f-\\x9f" - "]*$\310\001\000R\005label\0227\n\003tag\030\205\001 \001(\tB$\272H!r\034\030(2\030^[" - "^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R\003tag\0223\n\016daemon" - "_version\030\206\001 \001(\tB\013\272H\010r\003\030\375\001\310\001\000R\rdaemonVers" - "ion\022\'\n\010ipv4_ttl\030\226\001 \001(\rB\013\272H\010*\003\030\377\001\310\001\000R\007ipv" - "4Ttl\0222\n\016ipv6_hop_limit\030\227\001 \001(\rB\013\272H\010*\003\030\377\001\310" - "\001\000R\014ipv6HopLimit\022J\n\rlistener_auth\030\230\001 \001(\013" - "2\034.xtcp_config.v1.ListenerAuthB\006\272H\003\310\001\000R\014" - "listenerAuth\022Z\n\023prometheus_listener\030\231\001 \001" - "(\0132 .xtcp_config.v1.ListenerEndpointB\006\272H" - "\003\310\001\000R\022prometheusListener\022U\n\023admin_listen" - "er_auth\030\232\001 \001(\0132\034.xtcp_config.v1.Listener" - "AuthB\006\272H\003\310\001\000R\021adminListenerAuth\022\'\n\tgrpc_" - "port\030\240\001 \001(\rB\t\272H\006*\004\030\377\377\003R\010grpcPort\022N\n\rgrpc" - "_listener\030\241\001 \001(\0132 .xtcp_config.v1.Listen" - "erEndpointB\006\272H\003\310\001\000R\014grpcListener\022A\n\tlist" - "eners\030\242\001 \003(\0132\030.xtcp_config.v1.ListenerB\010" - "\272H\005\222\001\002\020\020R\tlisteners\022,\n\rpyroscope_url\030\252\001 " - "\001(\tB\006\272H\003\310\001\000R\014pyroscopeUrl\0225\n\022pyroscope_a" - "pp_name\030\253\001 \001(\tB\006\272H\003\310\001\000R\020pyroscopeAppName" - "\0227\n\023pyroscope_sample_hz\030\254\001 \001(\rB\006\272H\003\310\001\000R\021" - "pyroscopeSampleHz\022J\n\035pyroscope_upload_in" - "terval_sec\030\255\001 \001(\rB\006\272H\003\310\001\000R\032pyroscopeUplo" - "adIntervalSec\0229\n\024resolve_container_id\030\310\001" - " \001(\010B\006\272H\003\310\001\000R\022resolveContainerId\0227\n\027enri" - "ch_container_enable\030\311\001 \001(\010R\025enrichContai" - "nerEnable\0227\n\022docker_socket_path\030\312\001 \001(\tB\010" - "\272H\005r\003\030\377\001R\020dockerSocketPath\022-\n\022enrich_lld" - "p_enable\030\322\001 \001(\010R\020enrichLldpEnable\0225\n\021lld" - "pd_socket_path\030\323\001 \001(\tB\010\272H\005r\003\030\377\001R\017lldpdSo" - "cketPath\0226\n\022lldpd_version_hint\030\324\001 \001(\tB\007\272" - "H\004r\002\030\020R\020lldpdVersionHint\022+\n\021enrich_nic_e" - "nable\030\334\001 \001(\010R\017enrichNicEnable\022+\n\014uplink_" - "count\030\335\001 \001(\rB\007\272H\004*\002\030\002R\013uplinkCount\0226\n\021up" - "link_interfaces\030\336\001 \003(\tB\010\272H\005\222\001\002\020\002R\020uplink" - "Interfaces\022$\n\rpopulate_nsid\030\346\001 \001(\010R\014popu" - "lateNsid\022+\n\021enrich_asn_enable\030\360\001 \001(\010R\017en" - "richAsnEnable\022)\n\013asn_db_path\030\361\001 \001(\tB\010\272H\005" - "r\003\030\377\001R\tasnDbPath\022L\n\024asn_refresh_interval" - "\030\362\001 \001(\0132\031.google.protobuf.DurationR\022asnR" - "efreshInterval\022=\n\025ipmeta_bootstrap_path\030" - "\363\001 \001(\tB\010\272H\005r\003\030\377\001R\023ipmetaBootstrapPath\0225\n" - "\021ipmeta_cache_path\030\364\001 \001(\tB\010\272H\005r\003\030\377\001R\017ipm" - "etaCachePath\0225\n\026enrich_locality_enable\030\365" - "\001 \001(\010R\024enrichLocalityEnable\022V\n\031locality_" - "refresh_interval\030\366\001 \001(\0132\031.google.protobu" - "f.DurationR\027localityRefreshInterval\0225\n\026l" - "ocality_events_enable\030\367\001 \001(\010R\024localityEv" - "entsEnable\022E\n\014link_monitor\030\372\001 \001(\0132!.xtcp" - "_config.v1.LinkMonitorConfigR\013linkMonito" - "r:s\272Hp\032n\n\017XtcpConfig.poll\0222Poll timeout " - "must be less than poll poll_frequency\032\'t" - "his.poll_frequency > this.poll_timeout\"\237" - "\001\n\024EnabledDeserializers\022K\n\007enabled\030\001 \003(\013" - "21.xtcp_config.v1.EnabledDeserializers.E" - "nabledEntryR\007enabled\032:\n\014EnabledEntry\022\020\n\003" - "key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\010R\005value:\0028\001" - "*h\n\017ListenerNetwork\022 \n\034LISTENER_NETWORK_" - "UNSPECIFIED\020\000\022\030\n\024LISTENER_NETWORK_TCP\020\001\022" - "\031\n\025LISTENER_NETWORK_UNIX\020\002*\241\001\n\020ListenerA" - "uthMode\022\"\n\036LISTENER_AUTH_MODE_UNSPECIFIE" - "D\020\000\022\037\n\033LISTENER_AUTH_MODE_DISABLED\020\001\022 \n\034" - "LISTENER_AUTH_MODE_RAW_TOKEN\020\002\022&\n\"LISTEN" - "ER_AUTH_MODE_HMAC_UTC_MINUTE\020\003*\367\001\n\rEndpo" - "intClass\022\036\n\032ENDPOINT_CLASS_UNSPECIFIED\020\000" - "\022\031\n\025ENDPOINT_CLASS_HEALTH\020\001\022\032\n\026ENDPOINT_" - "CLASS_METRICS\020\002\022!\n\035ENDPOINT_CLASS_METRIC" - "S_DETAIL\020\003\022\025\n\021ENDPOINT_CLASS_IP\020\004\022\030\n\024END" - "POINT_CLASS_DEBUG\020\005\022\034\n\030ENDPOINT_CLASS_GR" - "PC_READ\020\006\022\035\n\031ENDPOINT_CLASS_GRPC_ADMIN\020\007" - "2\245\007\n\rConfigService\022a\n\003Get\022\032.xtcp_config." - "v1.GetRequest\032\033.xtcp_config.v1.GetRespon" - "se\"!\310\363\030\001\202\323\344\223\002\027\032\022/ConfigService/Get:\001*\022a\n" - "\003Set\022\032.xtcp_config.v1.SetRequest\032\033.xtcp_" - "config.v1.SetResponse\"!\310\363\030\002\202\323\344\223\002\027\032\022/Conf" - "igService/Set:\001*\022\225\001\n\020SetPollFrequency\022\'." - "xtcp_config.v1.SetPollFrequencyRequest\032(" - ".xtcp_config.v1.SetPollFrequencyResponse" - "\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/SetPollFreq" - "uency:\001*\022\201\001\n\013TriggerPoll\022\".xtcp_config.v" - "1.TriggerPollRequest\032#.xtcp_config.v1.Tr" - "iggerPollResponse\")\310\363\030\002\202\323\344\223\002\037\032\032/ConfigSe" - "rvice/TriggerPoll:\001*\022\225\001\n\020TriggerPollBurs" - "t\022\'.xtcp_config.v1.TriggerPollBurstReque" - "st\032(.xtcp_config.v1.TriggerPollBurstResp" - "onse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/Trigger" - "PollBurst:\001*\022\201\001\n\013SetS3Upload\022\".xtcp_conf" - "ig.v1.SetS3UploadRequest\032#.xtcp_config.v" - "1.SetS3UploadResponse\")\310\363\030\002\202\323\344\223\002\037\032\032/Conf" - "igService/SetS3Upload:\001*\022\225\001\n\020SetEnvelope" - "Flush\022\'.xtcp_config.v1.SetEnvelopeFlushR" - "equest\032(.xtcp_config.v1.SetEnvelopeFlush" - "Response\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/Set" - "EnvelopeFlush:\001*B\257\001\n\022com.xtcp_config.v1B" - "\017XtcpConfigProtoP\001Z3github.com/randomize" - "dcoder/xtcp2/gen/go/xtcp_config\242\002\003XXX\252\002\r" - "XtcpConfig.V1\312\002\rXtcpConfig\\V1\342\002\031XtcpConf" - "ig\\V1\\GPBMetadata\352\002\016XtcpConfig::V1b\006prot" - "o3" + "\017s3SpillMaxBytes\022Y\n\021tcp_write_timeout\030x " + "\001(\0132\031.google.protobuf.DurationB\022\272H\017\252\001\t\"\003" + "\010\220\0342\002\010\001\310\001\000R\017tcpWriteTimeout\0223\n\017tcp_queue" + "_depth\030y \001(\rB\013\272H\010*\003\030\200 \310\001\000R\rtcpQueueDepth" + "\022;\n\026tcp_max_buffered_bytes\030z \001(\004B\006\272H\003\310\001\000" + "R\023tcpMaxBufferedBytes\022B\n\010hostname\030\202\001 \001(\t" + "B%\272H\"r\035\030\375\0012\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R" + "\010hostname\022B\n\010location\030\203\001 \001(\tB%\272H\"r\035\030\375\0012\030" + "^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R\010location\022;\n" + "\005label\030\204\001 \001(\tB$\272H!r\034\030(2\030^[^\\x00-\\x1f\\x7f" + "-\\x9f]*$\310\001\000R\005label\0227\n\003tag\030\205\001 \001(\tB$\272H!r\034\030" + "(2\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000R\003tag\0223\n\016d" + "aemon_version\030\206\001 \001(\tB\013\272H\010r\003\030\375\001\310\001\000R\rdaemo" + "nVersion\022\'\n\010ipv4_ttl\030\226\001 \001(\rB\013\272H\010*\003\030\377\001\310\001\000" + "R\007ipv4Ttl\0222\n\016ipv6_hop_limit\030\227\001 \001(\rB\013\272H\010*" + "\003\030\377\001\310\001\000R\014ipv6HopLimit\022J\n\rlistener_auth\030\230" + "\001 \001(\0132\034.xtcp_config.v1.ListenerAuthB\006\272H\003" + "\310\001\000R\014listenerAuth\022Z\n\023prometheus_listener" + "\030\231\001 \001(\0132 .xtcp_config.v1.ListenerEndpoin" + "tB\006\272H\003\310\001\000R\022prometheusListener\022U\n\023admin_l" + "istener_auth\030\232\001 \001(\0132\034.xtcp_config.v1.Lis" + "tenerAuthB\006\272H\003\310\001\000R\021adminListenerAuth\022\'\n\t" + "grpc_port\030\240\001 \001(\rB\t\272H\006*\004\030\377\377\003R\010grpcPort\022N\n" + "\rgrpc_listener\030\241\001 \001(\0132 .xtcp_config.v1.L" + "istenerEndpointB\006\272H\003\310\001\000R\014grpcListener\022A\n" + "\tlisteners\030\242\001 \003(\0132\030.xtcp_config.v1.Liste" + "nerB\010\272H\005\222\001\002\020\020R\tlisteners\022,\n\rpyroscope_ur" + "l\030\252\001 \001(\tB\006\272H\003\310\001\000R\014pyroscopeUrl\0225\n\022pyrosc" + "ope_app_name\030\253\001 \001(\tB\006\272H\003\310\001\000R\020pyroscopeAp" + "pName\0227\n\023pyroscope_sample_hz\030\254\001 \001(\rB\006\272H\003" + "\310\001\000R\021pyroscopeSampleHz\022J\n\035pyroscope_uplo" + "ad_interval_sec\030\255\001 \001(\rB\006\272H\003\310\001\000R\032pyroscop" + "eUploadIntervalSec\0229\n\024resolve_container_" + "id\030\310\001 \001(\010B\006\272H\003\310\001\000R\022resolveContainerId\0227\n" + "\027enrich_container_enable\030\311\001 \001(\010R\025enrichC" + "ontainerEnable\0227\n\022docker_socket_path\030\312\001 " + "\001(\tB\010\272H\005r\003\030\377\001R\020dockerSocketPath\022-\n\022enric" + "h_lldp_enable\030\322\001 \001(\010R\020enrichLldpEnable\0225" + "\n\021lldpd_socket_path\030\323\001 \001(\tB\010\272H\005r\003\030\377\001R\017ll" + "dpdSocketPath\0226\n\022lldpd_version_hint\030\324\001 \001" + "(\tB\007\272H\004r\002\030\020R\020lldpdVersionHint\022+\n\021enrich_" + "nic_enable\030\334\001 \001(\010R\017enrichNicEnable\022+\n\014up" + "link_count\030\335\001 \001(\rB\007\272H\004*\002\030\002R\013uplinkCount\022" + "6\n\021uplink_interfaces\030\336\001 \003(\tB\010\272H\005\222\001\002\020\002R\020u" + "plinkInterfaces\022$\n\rpopulate_nsid\030\346\001 \001(\010R" + "\014populateNsid\022+\n\021enrich_asn_enable\030\360\001 \001(" + "\010R\017enrichAsnEnable\022)\n\013asn_db_path\030\361\001 \001(\t" + "B\010\272H\005r\003\030\377\001R\tasnDbPath\022L\n\024asn_refresh_int" + "erval\030\362\001 \001(\0132\031.google.protobuf.DurationR" + "\022asnRefreshInterval\022=\n\025ipmeta_bootstrap_" + "path\030\363\001 \001(\tB\010\272H\005r\003\030\377\001R\023ipmetaBootstrapPa" + "th\0225\n\021ipmeta_cache_path\030\364\001 \001(\tB\010\272H\005r\003\030\377\001" + "R\017ipmetaCachePath\0225\n\026enrich_locality_ena" + "ble\030\365\001 \001(\010R\024enrichLocalityEnable\022V\n\031loca" + "lity_refresh_interval\030\366\001 \001(\0132\031.google.pr" + "otobuf.DurationR\027localityRefreshInterval" + "\0225\n\026locality_events_enable\030\367\001 \001(\010R\024local" + "ityEventsEnable\022E\n\014link_monitor\030\372\001 \001(\0132!" + ".xtcp_config.v1.LinkMonitorConfigR\013linkM" + "onitor:s\272Hp\032n\n\017XtcpConfig.poll\0222Poll tim" + "eout must be less than poll poll_frequen" + "cy\032\'this.poll_frequency > this.poll_time" + "out\"\237\001\n\024EnabledDeserializers\022K\n\007enabled\030" + "\001 \003(\01321.xtcp_config.v1.EnabledDeserializ" + "ers.EnabledEntryR\007enabled\032:\n\014EnabledEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\010R\005valu" + "e:\0028\001*h\n\017ListenerNetwork\022 \n\034LISTENER_NET" + "WORK_UNSPECIFIED\020\000\022\030\n\024LISTENER_NETWORK_T" + "CP\020\001\022\031\n\025LISTENER_NETWORK_UNIX\020\002*\241\001\n\020List" + "enerAuthMode\022\"\n\036LISTENER_AUTH_MODE_UNSPE" + "CIFIED\020\000\022\037\n\033LISTENER_AUTH_MODE_DISABLED\020" + "\001\022 \n\034LISTENER_AUTH_MODE_RAW_TOKEN\020\002\022&\n\"L" + "ISTENER_AUTH_MODE_HMAC_UTC_MINUTE\020\003*\367\001\n\r" + "EndpointClass\022\036\n\032ENDPOINT_CLASS_UNSPECIF" + "IED\020\000\022\031\n\025ENDPOINT_CLASS_HEALTH\020\001\022\032\n\026ENDP" + "OINT_CLASS_METRICS\020\002\022!\n\035ENDPOINT_CLASS_M" + "ETRICS_DETAIL\020\003\022\025\n\021ENDPOINT_CLASS_IP\020\004\022\030" + "\n\024ENDPOINT_CLASS_DEBUG\020\005\022\034\n\030ENDPOINT_CLA" + "SS_GRPC_READ\020\006\022\035\n\031ENDPOINT_CLASS_GRPC_AD" + "MIN\020\0072\245\007\n\rConfigService\022a\n\003Get\022\032.xtcp_co" + "nfig.v1.GetRequest\032\033.xtcp_config.v1.GetR" + "esponse\"!\310\363\030\001\202\323\344\223\002\027\032\022/ConfigService/Get:" + "\001*\022a\n\003Set\022\032.xtcp_config.v1.SetRequest\032\033." + "xtcp_config.v1.SetResponse\"!\310\363\030\002\202\323\344\223\002\027\032\022" + "/ConfigService/Set:\001*\022\225\001\n\020SetPollFrequen" + "cy\022\'.xtcp_config.v1.SetPollFrequencyRequ" + "est\032(.xtcp_config.v1.SetPollFrequencyRes" + "ponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/SetPol" + "lFrequency:\001*\022\201\001\n\013TriggerPoll\022\".xtcp_con" + "fig.v1.TriggerPollRequest\032#.xtcp_config." + "v1.TriggerPollResponse\")\310\363\030\002\202\323\344\223\002\037\032\032/Con" + "figService/TriggerPoll:\001*\022\225\001\n\020TriggerPol" + "lBurst\022\'.xtcp_config.v1.TriggerPollBurst" + "Request\032(.xtcp_config.v1.TriggerPollBurs" + "tResponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/Tr" + "iggerPollBurst:\001*\022\201\001\n\013SetS3Upload\022\".xtcp" + "_config.v1.SetS3UploadRequest\032#.xtcp_con" + "fig.v1.SetS3UploadResponse\")\310\363\030\002\202\323\344\223\002\037\032\032" + "/ConfigService/SetS3Upload:\001*\022\225\001\n\020SetEnv" + "elopeFlush\022\'.xtcp_config.v1.SetEnvelopeF" + "lushRequest\032(.xtcp_config.v1.SetEnvelope" + "FlushResponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigServic" + "e/SetEnvelopeFlush:\001*B\257\001\n\022com.xtcp_confi" + "g.v1B\017XtcpConfigProtoP\001Z3github.com/rand" + "omizedcoder/xtcp2/gen/go/xtcp_config\242\002\003X" + "XX\252\002\rXtcpConfig.V1\312\002\rXtcpConfig\\V1\342\002\031Xtc" + "pConfig\\V1\\GPBMetadata\352\002\016XtcpConfig::V1b" + "\006proto3" }; static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto_deps[4] = { @@ -4902,7 +4927,7 @@ static ::absl::once_flag descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2ep PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto = { false, false, - 12882, + 13087, descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto, "xtcp_config/v1/xtcp_config.proto", &descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto_once, @@ -9844,15 +9869,20 @@ void XtcpConfig::clear_s3_upload_backoff_cap() { if (_impl_.s3_upload_backoff_cap_ != nullptr) _impl_.s3_upload_backoff_cap_->Clear(); ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } +void XtcpConfig::clear_tcp_write_timeout() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tcp_write_timeout_ != nullptr) _impl_.tcp_write_timeout_->Clear(); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); +} void XtcpConfig::clear_asn_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.asn_refresh_interval_ != nullptr) _impl_.asn_refresh_interval_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } void XtcpConfig::clear_locality_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.locality_refresh_interval_ != nullptr) _impl_.locality_refresh_interval_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } XtcpConfig::XtcpConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) @@ -9959,25 +9989,28 @@ XtcpConfig::XtcpConfig( _impl_.s3_upload_backoff_cap_ = (CheckHasBit(cached_has_bits, 0x00800000U)) ? Super_::CopyConstruct(arena, *from._impl_.s3_upload_backoff_cap_) : nullptr; - _impl_.listener_auth_ = (CheckHasBit(cached_has_bits, 0x01000000U)) + _impl_.tcp_write_timeout_ = (CheckHasBit(cached_has_bits, 0x01000000U)) + ? Super_::CopyConstruct(arena, *from._impl_.tcp_write_timeout_) + : nullptr; + _impl_.listener_auth_ = (CheckHasBit(cached_has_bits, 0x02000000U)) ? Super_::CopyConstruct(arena, *from._impl_.listener_auth_) : nullptr; - _impl_.prometheus_listener_ = (CheckHasBit(cached_has_bits, 0x02000000U)) + _impl_.prometheus_listener_ = (CheckHasBit(cached_has_bits, 0x04000000U)) ? Super_::CopyConstruct(arena, *from._impl_.prometheus_listener_) : nullptr; - _impl_.admin_listener_auth_ = (CheckHasBit(cached_has_bits, 0x04000000U)) + _impl_.admin_listener_auth_ = (CheckHasBit(cached_has_bits, 0x08000000U)) ? Super_::CopyConstruct(arena, *from._impl_.admin_listener_auth_) : nullptr; - _impl_.grpc_listener_ = (CheckHasBit(cached_has_bits, 0x08000000U)) + _impl_.grpc_listener_ = (CheckHasBit(cached_has_bits, 0x10000000U)) ? Super_::CopyConstruct(arena, *from._impl_.grpc_listener_) : nullptr; - _impl_.asn_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x10000000U)) + _impl_.asn_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x20000000U)) ? Super_::CopyConstruct(arena, *from._impl_.asn_refresh_interval_) : nullptr; - _impl_.locality_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x20000000U)) + _impl_.locality_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x40000000U)) ? Super_::CopyConstruct(arena, *from._impl_.locality_refresh_interval_) : nullptr; - _impl_.link_monitor_ = (CheckHasBit(cached_has_bits, 0x40000000U)) + _impl_.link_monitor_ = (CheckHasBit(cached_has_bits, 0x80000000U)) ? Super_::CopyConstruct(arena, *from._impl_.link_monitor_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -10096,6 +10129,7 @@ inline void XtcpConfig::SharedDtor(MessageLite& self) { delete this_._impl_.kafka_produce_timeout_; delete this_._impl_.s3_flush_interval_; delete this_._impl_.s3_upload_backoff_cap_; + delete this_._impl_.tcp_write_timeout_; delete this_._impl_.listener_auth_; delete this_._impl_.prometheus_listener_; delete this_._impl_.admin_listener_auth_; @@ -10296,64 +10330,75 @@ PROTOBUF_NOINLINE void XtcpConfig::Clear() { this_._impl_.s3_upload_backoff_cap_->Clear(); } } - if (BatchCheckHasBit(cached_has_bits, 0x7f000000U)) { + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(this_._impl_.tcp_write_timeout_ != nullptr); + this_._impl_.tcp_write_timeout_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x02000000U)) { ABSL_DCHECK(this_._impl_.listener_auth_ != nullptr); this_._impl_.listener_auth_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { ABSL_DCHECK(this_._impl_.prometheus_listener_ != nullptr); this_._impl_.prometheus_listener_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { ABSL_DCHECK(this_._impl_.admin_listener_auth_ != nullptr); this_._impl_.admin_listener_auth_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { ABSL_DCHECK(this_._impl_.grpc_listener_ != nullptr); this_._impl_.grpc_listener_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { ABSL_DCHECK(this_._impl_.asn_refresh_interval_ != nullptr); this_._impl_.asn_refresh_interval_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { ABSL_DCHECK(this_._impl_.locality_refresh_interval_ != nullptr); this_._impl_.locality_refresh_interval_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { ABSL_DCHECK(this_._impl_.link_monitor_ != nullptr); this_._impl_.link_monitor_->Clear(); } } - this_._impl_.max_netns_ = 0u; cached_has_bits = this_._impl_._has_bits_[2]; if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - ::memset(&this_._impl_.max_netns_per_owner_, 0, + ::memset(&this_._impl_.max_netns_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.reconcile_before_poll_) - - reinterpret_cast(&this_._impl_.max_netns_per_owner_)) + - sizeof(_impl_.reconcile_before_poll_)); + reinterpret_cast(&this_._impl_.envelope_flush_threshold_rows_) - + reinterpret_cast(&this_._impl_.max_netns_)) + + sizeof(_impl_.envelope_flush_threshold_rows_)); } if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - ::memset(&this_._impl_.debug_prometheus_, 0, + ::memset(&this_._impl_.reconcile_before_poll_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.s3_queue_depth_) - - reinterpret_cast(&this_._impl_.debug_prometheus_)) + - sizeof(_impl_.s3_queue_depth_)); + reinterpret_cast(&this_._impl_.s3_upload_max_attempts_) - + reinterpret_cast(&this_._impl_.reconcile_before_poll_)) + + sizeof(_impl_.s3_upload_max_attempts_)); } if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - ::memset(&this_._impl_.s3_max_buffered_bytes_, 0, + ::memset(&this_._impl_.s3_queue_depth_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.resolve_container_id_) - - reinterpret_cast(&this_._impl_.s3_max_buffered_bytes_)) + - sizeof(_impl_.resolve_container_id_)); + reinterpret_cast(&this_._impl_.grpc_port_) - + reinterpret_cast(&this_._impl_.s3_queue_depth_)) + + sizeof(_impl_.grpc_port_)); } if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - ::memset(&this_._impl_.enrich_container_enable_, 0, + ::memset(&this_._impl_.pyroscope_sample_hz_, 0, + static_cast<::size_t>( + reinterpret_cast(&this_._impl_.populate_nsid_) - + reinterpret_cast(&this_._impl_.pyroscope_sample_hz_)) + + sizeof(_impl_.populate_nsid_)); + } + cached_has_bits = this_._impl_._has_bits_[3]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&this_._impl_.enrich_asn_enable_, 0, static_cast<::size_t>( reinterpret_cast(&this_._impl_.locality_events_enable_) - - reinterpret_cast(&this_._impl_.enrich_container_enable_)) + + reinterpret_cast(&this_._impl_.enrich_asn_enable_)) + sizeof(_impl_.locality_events_enable_)); } _impl_._has_bits_.Clear(); @@ -10563,7 +10608,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (this_._internal_reconcile_before_poll() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10571,9 +10616,8 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[1]; // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_max_netns() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10581,6 +10625,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { if (CheckHasBit(cached_has_bits, 0x00100000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( @@ -10590,7 +10635,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_max_netns_per_owner() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10599,7 +10644,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_max_netns_adds_per_reconcile() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10608,7 +10653,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_write_files() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10629,7 +10674,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_dest_write_files() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10638,7 +10683,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_debug_level() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10647,7 +10692,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_debug_prometheus() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10698,7 +10743,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_envelope_flush_threshold_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10707,7 +10752,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_envelope_flush_threshold_rows() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10818,7 +10863,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (this_._internal_s3_skip_bucket_probe() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10827,7 +10872,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (this_._internal_s3_allow_insecure() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10848,7 +10893,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (this_._internal_s3_parquet_flush_threshold_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10866,7 +10911,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (this_._internal_s3_flush_jitter_pct() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10875,7 +10920,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (this_._internal_s3_flush_threshold_jitter_pct() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10884,7 +10929,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_s3_upload_max_attempts() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10902,7 +10947,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_s3_queue_depth() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10911,7 +10956,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_s3_max_buffered_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10932,7 +10977,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_s3_spill_max_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10940,6 +10985,33 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[1]; + // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 120, *this_._impl_.tcp_write_timeout_, this_._impl_.tcp_write_timeout_->GetCachedSize(), target, + stream); + } + + cached_has_bits = this_._impl_._has_bits_[2]; + // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (this_._internal_tcp_queue_depth() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 121, this_._internal_tcp_queue_depth(), target); + } + } + + // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (this_._internal_tcp_max_buffered_bytes() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 122, this_._internal_tcp_max_buffered_bytes(), target); + } + } + cached_has_bits = this_._impl_._has_bits_[1]; // string hostname = 130 [json_name = "hostname", (.buf.validate.field) = { if (CheckHasBit(cached_has_bits, 0x00000040U)) { @@ -10993,7 +11065,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_ipv4_ttl() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11002,7 +11074,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_ipv6_hop_limit() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11012,21 +11084,21 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 152, *this_._impl_.listener_auth_, this_._impl_.listener_auth_->GetCachedSize(), target, stream); } // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 153, *this_._impl_.prometheus_listener_, this_._impl_.prometheus_listener_->GetCachedSize(), target, stream); } // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 154, *this_._impl_.admin_listener_auth_, this_._impl_.admin_listener_auth_->GetCachedSize(), target, stream); @@ -11034,7 +11106,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_grpc_port() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11044,7 +11116,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 161, *this_._impl_.grpc_listener_, this_._impl_.grpc_listener_->GetCachedSize(), target, stream); @@ -11086,7 +11158,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_pyroscope_sample_hz() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11095,7 +11167,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (this_._internal_pyroscope_upload_interval_sec() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11104,7 +11176,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (this_._internal_resolve_container_id() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11113,7 +11185,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (this_._internal_enrich_container_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11134,7 +11206,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (this_._internal_enrich_lldp_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11165,7 +11237,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (this_._internal_enrich_nic_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11174,7 +11246,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (this_._internal_uplink_count() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11195,7 +11267,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool populate_nsid = 230 [json_name = "populateNsid"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (this_._internal_populate_nsid() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11203,8 +11275,9 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[3]; // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_enrich_asn_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11224,7 +11297,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 242, *this_._impl_.asn_refresh_interval_, this_._impl_.asn_refresh_interval_->GetCachedSize(), target, stream); @@ -11250,9 +11323,9 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[2]; + cached_has_bits = this_._impl_._has_bits_[3]; // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_enrich_locality_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11262,15 +11335,15 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 246, *this_._impl_.locality_refresh_interval_, this_._impl_.locality_refresh_interval_->GetCachedSize(), target, stream); } - cached_has_bits = this_._impl_._has_bits_[2]; + cached_has_bits = this_._impl_._has_bits_[3]; // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_locality_events_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11280,7 +11353,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 250, *this_._impl_.link_monitor_, this_._impl_.link_monitor_->GetCachedSize(), target, stream); @@ -11702,265 +11775,287 @@ ::size_t XtcpConfig::ByteSizeLong() const { } } if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { + // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { if (CheckHasBit(cached_has_bits, 0x01000000U)) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tcp_write_timeout_); + } + // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.listener_auth_); } // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.prometheus_listener_); } // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.admin_listener_auth_); } // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.grpc_listener_); } // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.asn_refresh_interval_); } // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.locality_refresh_interval_); } // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.link_monitor_); } + } + cached_has_bits = this_._impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_max_netns() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns()); } } - } - cached_has_bits = this_._impl_._has_bits_[2]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_max_netns_per_owner() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns_per_owner()); } } // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_max_netns_adds_per_reconcile() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns_adds_per_reconcile()); } } // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_write_files() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_write_files()); } } // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_dest_write_files() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_dest_write_files()); } } // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_debug_level() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_debug_level()); } } // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_envelope_flush_threshold_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_envelope_flush_threshold_bytes()); } } // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_envelope_flush_threshold_rows() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_envelope_flush_threshold_rows()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (this_._internal_reconcile_before_poll() != 0) { total_size += 3; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_debug_prometheus() != 0) { total_size += 3; } } // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (this_._internal_s3_skip_bucket_probe() != 0) { total_size += 3; } } // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (this_._internal_s3_allow_insecure() != 0) { total_size += 3; } } // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (this_._internal_s3_parquet_flush_threshold_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_parquet_flush_threshold_bytes()); } } // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (this_._internal_s3_flush_jitter_pct() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_flush_jitter_pct()); } } // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (this_._internal_s3_flush_threshold_jitter_pct() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_flush_threshold_jitter_pct()); } } // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_s3_upload_max_attempts() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_upload_max_attempts()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_s3_queue_depth() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_queue_depth()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_s3_max_buffered_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_s3_max_buffered_bytes()); } } // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_s3_spill_max_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_s3_spill_max_bytes()); } } + // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (this_._internal_tcp_max_buffered_bytes() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_tcp_max_buffered_bytes()); + } + } + // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (this_._internal_tcp_queue_depth() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_tcp_queue_depth()); + } + } // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_ipv4_ttl() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_ipv4_ttl()); } } // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_ipv6_hop_limit() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_ipv6_hop_limit()); } } // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_grpc_port() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_grpc_port()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_pyroscope_sample_hz() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_pyroscope_sample_hz()); } } // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (this_._internal_pyroscope_upload_interval_sec() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_pyroscope_upload_interval_sec()); } } // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (this_._internal_resolve_container_id() != 0) { total_size += 3; } } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (this_._internal_enrich_container_enable() != 0) { total_size += 3; } } // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (this_._internal_enrich_lldp_enable() != 0) { total_size += 3; } } // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (this_._internal_enrich_nic_enable() != 0) { total_size += 3; } } // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (this_._internal_uplink_count() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_uplink_count()); } } // bool populate_nsid = 230 [json_name = "populateNsid"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (this_._internal_populate_nsid() != 0) { total_size += 3; } } + } + cached_has_bits = this_._impl_._has_bits_[3]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_enrich_asn_enable() != 0) { total_size += 3; } } // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_enrich_locality_enable() != 0) { total_size += 3; } } // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_locality_events_enable() != 0) { total_size += 3; } @@ -12421,6 +12516,14 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, } if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(from._impl_.tcp_write_timeout_ != nullptr); + if (_this->_impl_.tcp_write_timeout_ == nullptr) { + _this->_impl_.tcp_write_timeout_ = Super_::CopyConstruct(arena, *from._impl_.tcp_write_timeout_); + } else { + _this->_impl_.tcp_write_timeout_->MergeFrom(*from._impl_.tcp_write_timeout_); + } + } + if (CheckHasBit(cached_has_bits, 0x02000000U)) { ABSL_DCHECK(from._impl_.listener_auth_ != nullptr); if (_this->_impl_.listener_auth_ == nullptr) { _this->_impl_.listener_auth_ = Super_::CopyConstruct(arena, *from._impl_.listener_auth_); @@ -12428,7 +12531,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.listener_auth_->MergeFrom(*from._impl_.listener_auth_); } } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { ABSL_DCHECK(from._impl_.prometheus_listener_ != nullptr); if (_this->_impl_.prometheus_listener_ == nullptr) { _this->_impl_.prometheus_listener_ = Super_::CopyConstruct(arena, *from._impl_.prometheus_listener_); @@ -12436,7 +12539,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.prometheus_listener_->MergeFrom(*from._impl_.prometheus_listener_); } } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { ABSL_DCHECK(from._impl_.admin_listener_auth_ != nullptr); if (_this->_impl_.admin_listener_auth_ == nullptr) { _this->_impl_.admin_listener_auth_ = Super_::CopyConstruct(arena, *from._impl_.admin_listener_auth_); @@ -12444,7 +12547,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.admin_listener_auth_->MergeFrom(*from._impl_.admin_listener_auth_); } } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { ABSL_DCHECK(from._impl_.grpc_listener_ != nullptr); if (_this->_impl_.grpc_listener_ == nullptr) { _this->_impl_.grpc_listener_ = Super_::CopyConstruct(arena, *from._impl_.grpc_listener_); @@ -12452,7 +12555,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.grpc_listener_->MergeFrom(*from._impl_.grpc_listener_); } } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { ABSL_DCHECK(from._impl_.asn_refresh_interval_ != nullptr); if (_this->_impl_.asn_refresh_interval_ == nullptr) { _this->_impl_.asn_refresh_interval_ = Super_::CopyConstruct(arena, *from._impl_.asn_refresh_interval_); @@ -12460,7 +12563,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.asn_refresh_interval_->MergeFrom(*from._impl_.asn_refresh_interval_); } } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { ABSL_DCHECK(from._impl_.locality_refresh_interval_ != nullptr); if (_this->_impl_.locality_refresh_interval_ == nullptr) { _this->_impl_.locality_refresh_interval_ = Super_::CopyConstruct(arena, *from._impl_.locality_refresh_interval_); @@ -12468,7 +12571,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.locality_refresh_interval_->MergeFrom(*from._impl_.locality_refresh_interval_); } } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { ABSL_DCHECK(from._impl_.link_monitor_ != nullptr); if (_this->_impl_.link_monitor_ == nullptr) { _this->_impl_.link_monitor_ = Super_::CopyConstruct(arena, *from._impl_.link_monitor_); @@ -12476,176 +12579,189 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.link_monitor_->MergeFrom(*from._impl_.link_monitor_); } } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { - if (from._internal_max_netns() != 0) { - _this->_impl_.max_netns_ = from._impl_.max_netns_; - } - } } cached_has_bits = from._impl_._has_bits_[2]; if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_max_netns() != 0) { + _this->_impl_.max_netns_ = from._impl_.max_netns_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_max_netns_per_owner() != 0) { _this->_impl_.max_netns_per_owner_ = from._impl_.max_netns_per_owner_; } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_max_netns_adds_per_reconcile() != 0) { _this->_impl_.max_netns_adds_per_reconcile_ = from._impl_.max_netns_adds_per_reconcile_; } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_write_files() != 0) { _this->_impl_.write_files_ = from._impl_.write_files_; } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_dest_write_files() != 0) { _this->_impl_.dest_write_files_ = from._impl_.dest_write_files_; } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (from._internal_debug_level() != 0) { _this->_impl_.debug_level_ = from._impl_.debug_level_; } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (from._internal_envelope_flush_threshold_bytes() != 0) { _this->_impl_.envelope_flush_threshold_bytes_ = from._impl_.envelope_flush_threshold_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (from._internal_envelope_flush_threshold_rows() != 0) { _this->_impl_.envelope_flush_threshold_rows_ = from._impl_.envelope_flush_threshold_rows_; } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (from._internal_reconcile_before_poll() != 0) { _this->_impl_.reconcile_before_poll_ = from._impl_.reconcile_before_poll_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (from._internal_debug_prometheus() != 0) { _this->_impl_.debug_prometheus_ = from._impl_.debug_prometheus_; } } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (from._internal_s3_skip_bucket_probe() != 0) { _this->_impl_.s3_skip_bucket_probe_ = from._impl_.s3_skip_bucket_probe_; } } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (from._internal_s3_allow_insecure() != 0) { _this->_impl_.s3_allow_insecure_ = from._impl_.s3_allow_insecure_; } } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (from._internal_s3_parquet_flush_threshold_bytes() != 0) { _this->_impl_.s3_parquet_flush_threshold_bytes_ = from._impl_.s3_parquet_flush_threshold_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (from._internal_s3_flush_jitter_pct() != 0) { _this->_impl_.s3_flush_jitter_pct_ = from._impl_.s3_flush_jitter_pct_; } } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (from._internal_s3_flush_threshold_jitter_pct() != 0) { _this->_impl_.s3_flush_threshold_jitter_pct_ = from._impl_.s3_flush_threshold_jitter_pct_; } } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (from._internal_s3_upload_max_attempts() != 0) { _this->_impl_.s3_upload_max_attempts_ = from._impl_.s3_upload_max_attempts_; } } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (from._internal_s3_queue_depth() != 0) { _this->_impl_.s3_queue_depth_ = from._impl_.s3_queue_depth_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (from._internal_s3_max_buffered_bytes() != 0) { _this->_impl_.s3_max_buffered_bytes_ = from._impl_.s3_max_buffered_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (from._internal_s3_spill_max_bytes() != 0) { _this->_impl_.s3_spill_max_bytes_ = from._impl_.s3_spill_max_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (from._internal_tcp_max_buffered_bytes() != 0) { + _this->_impl_.tcp_max_buffered_bytes_ = from._impl_.tcp_max_buffered_bytes_; + } + } + if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (from._internal_tcp_queue_depth() != 0) { + _this->_impl_.tcp_queue_depth_ = from._impl_.tcp_queue_depth_; + } + } + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (from._internal_ipv4_ttl() != 0) { _this->_impl_.ipv4_ttl_ = from._impl_.ipv4_ttl_; } } - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (from._internal_ipv6_hop_limit() != 0) { _this->_impl_.ipv6_hop_limit_ = from._impl_.ipv6_hop_limit_; } } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (from._internal_grpc_port() != 0) { _this->_impl_.grpc_port_ = from._impl_.grpc_port_; } } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (from._internal_pyroscope_sample_hz() != 0) { _this->_impl_.pyroscope_sample_hz_ = from._impl_.pyroscope_sample_hz_; } } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (from._internal_pyroscope_upload_interval_sec() != 0) { _this->_impl_.pyroscope_upload_interval_sec_ = from._impl_.pyroscope_upload_interval_sec_; } } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (from._internal_resolve_container_id() != 0) { _this->_impl_.resolve_container_id_ = from._impl_.resolve_container_id_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (from._internal_enrich_container_enable() != 0) { _this->_impl_.enrich_container_enable_ = from._impl_.enrich_container_enable_; } } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (from._internal_enrich_lldp_enable() != 0) { _this->_impl_.enrich_lldp_enable_ = from._impl_.enrich_lldp_enable_; } } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (from._internal_enrich_nic_enable() != 0) { _this->_impl_.enrich_nic_enable_ = from._impl_.enrich_nic_enable_; } } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (from._internal_uplink_count() != 0) { _this->_impl_.uplink_count_ = from._impl_.uplink_count_; } } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (from._internal_populate_nsid() != 0) { _this->_impl_.populate_nsid_ = from._impl_.populate_nsid_; } } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + } + cached_has_bits = from._impl_._has_bits_[3]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_enrich_asn_enable() != 0) { _this->_impl_.enrich_asn_enable_ = from._impl_.enrich_asn_enable_; } } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_enrich_locality_enable() != 0) { _this->_impl_.enrich_locality_enable_ = from._impl_.enrich_locality_enable_; } } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_locality_events_enable() != 0) { _this->_impl_.locality_events_enable_ = from._impl_.locality_events_enable_; } @@ -12672,6 +12788,7 @@ void XtcpConfig::InternalSwap(XtcpConfig* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); swap(_impl_._has_bits_[2], other->_impl_._has_bits_[2]); + swap(_impl_._has_bits_[3], other->_impl_._has_bits_[3]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.csv_columns_, &other->_impl_.csv_columns_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.xtcp_proto_file_, &other->_impl_.xtcp_proto_file_, arena); ::google::protobuf::internal::memswap< diff --git a/gen/cpp/xtcp_config/v1/xtcp_config.pb.h b/gen/cpp/xtcp_config/v1/xtcp_config.pb.h index 6f38bcb09..9f768b3fe 100644 --- a/gen/cpp/xtcp_config/v1/xtcp_config.pb.h +++ b/gen/cpp/xtcp_config/v1/xtcp_config.pb.h @@ -3878,6 +3878,7 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: kKafkaProduceTimeoutFieldNumber = 82, kS3FlushIntervalFieldNumber = 111, kS3UploadBackoffCapFieldNumber = 115, + kTcpWriteTimeoutFieldNumber = 120, kListenerAuthFieldNumber = 152, kPrometheusListenerFieldNumber = 153, kAdminListenerAuthFieldNumber = 154, @@ -3904,6 +3905,8 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: kS3QueueDepthFieldNumber = 116, kS3MaxBufferedBytesFieldNumber = 117, kS3SpillMaxBytesFieldNumber = 119, + kTcpMaxBufferedBytesFieldNumber = 122, + kTcpQueueDepthFieldNumber = 121, kIpv4TtlFieldNumber = 150, kIpv6HopLimitFieldNumber = 151, kGrpcPortFieldNumber = 160, @@ -4689,6 +4692,21 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: const ::google::protobuf::Duration& _internal_s3_upload_backoff_cap() const; ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_s3_upload_backoff_cap(); + public: + // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { + [[nodiscard]] bool has_tcp_write_timeout() const; + void clear_tcp_write_timeout() ; + [[nodiscard]] const ::google::protobuf::Duration& tcp_write_timeout() const; + [[nodiscard]] ::google::protobuf::Duration* PROTOBUF_NULLABLE release_tcp_write_timeout(); + ::google::protobuf::Duration* PROTOBUF_NONNULL mutable_tcp_write_timeout(); + void set_allocated_tcp_write_timeout(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_tcp_write_timeout(::google::protobuf::Duration* PROTOBUF_NULLABLE value); + ::google::protobuf::Duration* PROTOBUF_NULLABLE unsafe_arena_release_tcp_write_timeout(); + + private: + const ::google::protobuf::Duration& _internal_tcp_write_timeout() const; + ::google::protobuf::Duration* PROTOBUF_NONNULL _internal_mutable_tcp_write_timeout(); + public: // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { [[nodiscard]] bool has_listener_auth() const; @@ -4984,6 +5002,26 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: ::uint64_t _internal_s3_spill_max_bytes() const; void _internal_set_s3_spill_max_bytes(::uint64_t value); + public: + // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { + void clear_tcp_max_buffered_bytes() ; + [[nodiscard]] ::uint64_t tcp_max_buffered_bytes() const; + void set_tcp_max_buffered_bytes(::uint64_t value); + + private: + ::uint64_t _internal_tcp_max_buffered_bytes() const; + void _internal_set_tcp_max_buffered_bytes(::uint64_t value); + + public: + // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { + void clear_tcp_queue_depth() ; + [[nodiscard]] ::uint32_t tcp_queue_depth() const; + void set_tcp_queue_depth(::uint32_t value); + + private: + ::uint32_t _internal_tcp_queue_depth() const; + void _internal_set_tcp_queue_depth(::uint32_t value); + public: // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { void clear_ipv4_ttl() ; @@ -5129,8 +5167,8 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: private: class _Internal; using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<5, 96, - 16, 494, + ::google::protobuf::internal::TcParseTable<5, 99, + 17, 494, 33>; static constexpr ParseTableT_ InternalGenerateParseTable_( const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); @@ -5156,7 +5194,7 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const XtcpConfig& from_msg); - ::google::protobuf::internal::HasBits<3> _has_bits_; + ::google::protobuf::internal::HasBits<4> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr csv_columns_; ::google::protobuf::internal::ArenaStringPtr xtcp_proto_file_; @@ -5214,6 +5252,7 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: ::google::protobuf::Duration* PROTOBUF_NULLABLE kafka_produce_timeout_; ::google::protobuf::Duration* PROTOBUF_NULLABLE s3_flush_interval_; ::google::protobuf::Duration* PROTOBUF_NULLABLE s3_upload_backoff_cap_; + ::google::protobuf::Duration* PROTOBUF_NULLABLE tcp_write_timeout_; ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE listener_auth_; ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE prometheus_listener_; ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE admin_listener_auth_; @@ -5240,6 +5279,8 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: ::uint32_t s3_queue_depth_; ::uint64_t s3_max_buffered_bytes_; ::uint64_t s3_spill_max_bytes_; + ::uint64_t tcp_max_buffered_bytes_; + ::uint32_t tcp_queue_depth_; ::uint32_t ipv4_ttl_; ::uint32_t ipv6_hop_limit_; ::uint32_t grpc_port_; @@ -11563,7 +11604,7 @@ inline void XtcpConfig::set_allocated_reconcile_frequency(::google::protobuf::Du inline void XtcpConfig::clear_reconcile_before_poll() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reconcile_before_poll_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000080U); + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); } inline bool XtcpConfig::reconcile_before_poll() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.reconcile_before_poll) @@ -11571,7 +11612,7 @@ inline bool XtcpConfig::reconcile_before_poll() const { } inline void XtcpConfig::set_reconcile_before_poll(bool value) { _internal_set_reconcile_before_poll(value); - SetHasBit(_impl_._has_bits_[2], 0x00000080U); + SetHasBit(_impl_._has_bits_[2], 0x00000100U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.reconcile_before_poll) } inline bool XtcpConfig::_internal_reconcile_before_poll() const { @@ -11587,7 +11628,7 @@ inline void XtcpConfig::_internal_set_reconcile_before_poll(bool value) { inline void XtcpConfig::clear_max_netns() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_ = 0u; - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } inline ::uint32_t XtcpConfig::max_netns() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns) @@ -11595,7 +11636,7 @@ inline ::uint32_t XtcpConfig::max_netns() const { } inline void XtcpConfig::set_max_netns(::uint32_t value) { _internal_set_max_netns(value); - SetHasBit(_impl_._has_bits_[1], 0x80000000U); + SetHasBit(_impl_._has_bits_[2], 0x00000001U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns) } inline ::uint32_t XtcpConfig::_internal_max_netns() const { @@ -11704,7 +11745,7 @@ inline void XtcpConfig::set_allocated_reconcile_timeout(::google::protobuf::Dura inline void XtcpConfig::clear_max_netns_per_owner() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_per_owner_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000001U); + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); } inline ::uint32_t XtcpConfig::max_netns_per_owner() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns_per_owner) @@ -11712,7 +11753,7 @@ inline ::uint32_t XtcpConfig::max_netns_per_owner() const { } inline void XtcpConfig::set_max_netns_per_owner(::uint32_t value) { _internal_set_max_netns_per_owner(value); - SetHasBit(_impl_._has_bits_[2], 0x00000001U); + SetHasBit(_impl_._has_bits_[2], 0x00000002U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns_per_owner) } inline ::uint32_t XtcpConfig::_internal_max_netns_per_owner() const { @@ -11728,7 +11769,7 @@ inline void XtcpConfig::_internal_set_max_netns_per_owner(::uint32_t value) { inline void XtcpConfig::clear_max_netns_adds_per_reconcile() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_adds_per_reconcile_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000002U); + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); } inline ::uint32_t XtcpConfig::max_netns_adds_per_reconcile() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns_adds_per_reconcile) @@ -11736,7 +11777,7 @@ inline ::uint32_t XtcpConfig::max_netns_adds_per_reconcile() const { } inline void XtcpConfig::set_max_netns_adds_per_reconcile(::uint32_t value) { _internal_set_max_netns_adds_per_reconcile(value); - SetHasBit(_impl_._has_bits_[2], 0x00000002U); + SetHasBit(_impl_._has_bits_[2], 0x00000004U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns_adds_per_reconcile) } inline ::uint32_t XtcpConfig::_internal_max_netns_adds_per_reconcile() const { @@ -11752,7 +11793,7 @@ inline void XtcpConfig::_internal_set_max_netns_adds_per_reconcile(::uint32_t va inline void XtcpConfig::clear_write_files() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.write_files_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000004U); + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); } inline ::uint32_t XtcpConfig::write_files() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.write_files) @@ -11760,7 +11801,7 @@ inline ::uint32_t XtcpConfig::write_files() const { } inline void XtcpConfig::set_write_files(::uint32_t value) { _internal_set_write_files(value); - SetHasBit(_impl_._has_bits_[2], 0x00000004U); + SetHasBit(_impl_._has_bits_[2], 0x00000008U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.write_files) } inline ::uint32_t XtcpConfig::_internal_write_files() const { @@ -11840,7 +11881,7 @@ inline void XtcpConfig::set_allocated_capture_path(::std::string* PROTOBUF_NULLA inline void XtcpConfig::clear_dest_write_files() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dest_write_files_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000008U); + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); } inline ::uint32_t XtcpConfig::dest_write_files() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.dest_write_files) @@ -11848,7 +11889,7 @@ inline ::uint32_t XtcpConfig::dest_write_files() const { } inline void XtcpConfig::set_dest_write_files(::uint32_t value) { _internal_set_dest_write_files(value); - SetHasBit(_impl_._has_bits_[2], 0x00000008U); + SetHasBit(_impl_._has_bits_[2], 0x00000010U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.dest_write_files) } inline ::uint32_t XtcpConfig::_internal_dest_write_files() const { @@ -11864,7 +11905,7 @@ inline void XtcpConfig::_internal_set_dest_write_files(::uint32_t value) { inline void XtcpConfig::clear_debug_level() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.debug_level_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000010U); + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); } inline ::uint32_t XtcpConfig::debug_level() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.debug_level) @@ -11872,7 +11913,7 @@ inline ::uint32_t XtcpConfig::debug_level() const { } inline void XtcpConfig::set_debug_level(::uint32_t value) { _internal_set_debug_level(value); - SetHasBit(_impl_._has_bits_[2], 0x00000010U); + SetHasBit(_impl_._has_bits_[2], 0x00000020U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.debug_level) } inline ::uint32_t XtcpConfig::_internal_debug_level() const { @@ -11888,7 +11929,7 @@ inline void XtcpConfig::_internal_set_debug_level(::uint32_t value) { inline void XtcpConfig::clear_debug_prometheus() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.debug_prometheus_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000100U); + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); } inline bool XtcpConfig::debug_prometheus() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.debug_prometheus) @@ -11896,7 +11937,7 @@ inline bool XtcpConfig::debug_prometheus() const { } inline void XtcpConfig::set_debug_prometheus(bool value) { _internal_set_debug_prometheus(value); - SetHasBit(_impl_._has_bits_[2], 0x00000100U); + SetHasBit(_impl_._has_bits_[2], 0x00000200U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.debug_prometheus) } inline bool XtcpConfig::_internal_debug_prometheus() const { @@ -12168,7 +12209,7 @@ inline void XtcpConfig::set_allocated_xtcp_proto_file(::std::string* PROTOBUF_NU inline void XtcpConfig::clear_envelope_flush_threshold_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.envelope_flush_threshold_bytes_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000020U); + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); } inline ::uint32_t XtcpConfig::envelope_flush_threshold_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_bytes) @@ -12176,7 +12217,7 @@ inline ::uint32_t XtcpConfig::envelope_flush_threshold_bytes() const { } inline void XtcpConfig::set_envelope_flush_threshold_bytes(::uint32_t value) { _internal_set_envelope_flush_threshold_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00000020U); + SetHasBit(_impl_._has_bits_[2], 0x00000040U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_bytes) } inline ::uint32_t XtcpConfig::_internal_envelope_flush_threshold_bytes() const { @@ -12192,7 +12233,7 @@ inline void XtcpConfig::_internal_set_envelope_flush_threshold_bytes(::uint32_t inline void XtcpConfig::clear_envelope_flush_threshold_rows() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.envelope_flush_threshold_rows_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000040U); + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); } inline ::uint32_t XtcpConfig::envelope_flush_threshold_rows() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_rows) @@ -12200,7 +12241,7 @@ inline ::uint32_t XtcpConfig::envelope_flush_threshold_rows() const { } inline void XtcpConfig::set_envelope_flush_threshold_rows(::uint32_t value) { _internal_set_envelope_flush_threshold_rows(value); - SetHasBit(_impl_._has_bits_[2], 0x00000040U); + SetHasBit(_impl_._has_bits_[2], 0x00000080U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_rows) } inline ::uint32_t XtcpConfig::_internal_envelope_flush_threshold_rows() const { @@ -12885,7 +12926,7 @@ inline void XtcpConfig::set_allocated_s3_secret_key(::std::string* PROTOBUF_NULL inline void XtcpConfig::clear_s3_skip_bucket_probe() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_skip_bucket_probe_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000200U); + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); } inline bool XtcpConfig::s3_skip_bucket_probe() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_skip_bucket_probe) @@ -12893,7 +12934,7 @@ inline bool XtcpConfig::s3_skip_bucket_probe() const { } inline void XtcpConfig::set_s3_skip_bucket_probe(bool value) { _internal_set_s3_skip_bucket_probe(value); - SetHasBit(_impl_._has_bits_[2], 0x00000200U); + SetHasBit(_impl_._has_bits_[2], 0x00000400U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_skip_bucket_probe) } inline bool XtcpConfig::_internal_s3_skip_bucket_probe() const { @@ -12909,7 +12950,7 @@ inline void XtcpConfig::_internal_set_s3_skip_bucket_probe(bool value) { inline void XtcpConfig::clear_s3_allow_insecure() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_allow_insecure_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000400U); + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); } inline bool XtcpConfig::s3_allow_insecure() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_allow_insecure) @@ -12917,7 +12958,7 @@ inline bool XtcpConfig::s3_allow_insecure() const { } inline void XtcpConfig::set_s3_allow_insecure(bool value) { _internal_set_s3_allow_insecure(value); - SetHasBit(_impl_._has_bits_[2], 0x00000400U); + SetHasBit(_impl_._has_bits_[2], 0x00000800U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_allow_insecure) } inline bool XtcpConfig::_internal_s3_allow_insecure() const { @@ -12997,7 +13038,7 @@ inline void XtcpConfig::set_allocated_s3_ca_file(::std::string* PROTOBUF_NULLABL inline void XtcpConfig::clear_s3_parquet_flush_threshold_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_parquet_flush_threshold_bytes_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000800U); + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); } inline ::uint32_t XtcpConfig::s3_parquet_flush_threshold_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_parquet_flush_threshold_bytes) @@ -13005,7 +13046,7 @@ inline ::uint32_t XtcpConfig::s3_parquet_flush_threshold_bytes() const { } inline void XtcpConfig::set_s3_parquet_flush_threshold_bytes(::uint32_t value) { _internal_set_s3_parquet_flush_threshold_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00000800U); + SetHasBit(_impl_._has_bits_[2], 0x00001000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_parquet_flush_threshold_bytes) } inline ::uint32_t XtcpConfig::_internal_s3_parquet_flush_threshold_bytes() const { @@ -13114,7 +13155,7 @@ inline void XtcpConfig::set_allocated_s3_flush_interval(::google::protobuf::Dura inline void XtcpConfig::clear_s3_flush_jitter_pct() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_flush_jitter_pct_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00001000U); + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); } inline ::uint32_t XtcpConfig::s3_flush_jitter_pct() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_flush_jitter_pct) @@ -13122,7 +13163,7 @@ inline ::uint32_t XtcpConfig::s3_flush_jitter_pct() const { } inline void XtcpConfig::set_s3_flush_jitter_pct(::uint32_t value) { _internal_set_s3_flush_jitter_pct(value); - SetHasBit(_impl_._has_bits_[2], 0x00001000U); + SetHasBit(_impl_._has_bits_[2], 0x00002000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_flush_jitter_pct) } inline ::uint32_t XtcpConfig::_internal_s3_flush_jitter_pct() const { @@ -13138,7 +13179,7 @@ inline void XtcpConfig::_internal_set_s3_flush_jitter_pct(::uint32_t value) { inline void XtcpConfig::clear_s3_flush_threshold_jitter_pct() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_flush_threshold_jitter_pct_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00002000U); + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); } inline ::uint32_t XtcpConfig::s3_flush_threshold_jitter_pct() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_flush_threshold_jitter_pct) @@ -13146,7 +13187,7 @@ inline ::uint32_t XtcpConfig::s3_flush_threshold_jitter_pct() const { } inline void XtcpConfig::set_s3_flush_threshold_jitter_pct(::uint32_t value) { _internal_set_s3_flush_threshold_jitter_pct(value); - SetHasBit(_impl_._has_bits_[2], 0x00002000U); + SetHasBit(_impl_._has_bits_[2], 0x00004000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_flush_threshold_jitter_pct) } inline ::uint32_t XtcpConfig::_internal_s3_flush_threshold_jitter_pct() const { @@ -13162,7 +13203,7 @@ inline void XtcpConfig::_internal_set_s3_flush_threshold_jitter_pct(::uint32_t v inline void XtcpConfig::clear_s3_upload_max_attempts() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_upload_max_attempts_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00004000U); + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); } inline ::uint32_t XtcpConfig::s3_upload_max_attempts() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_upload_max_attempts) @@ -13170,7 +13211,7 @@ inline ::uint32_t XtcpConfig::s3_upload_max_attempts() const { } inline void XtcpConfig::set_s3_upload_max_attempts(::uint32_t value) { _internal_set_s3_upload_max_attempts(value); - SetHasBit(_impl_._has_bits_[2], 0x00004000U); + SetHasBit(_impl_._has_bits_[2], 0x00008000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_upload_max_attempts) } inline ::uint32_t XtcpConfig::_internal_s3_upload_max_attempts() const { @@ -13279,7 +13320,7 @@ inline void XtcpConfig::set_allocated_s3_upload_backoff_cap(::google::protobuf:: inline void XtcpConfig::clear_s3_queue_depth() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_queue_depth_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00008000U); + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); } inline ::uint32_t XtcpConfig::s3_queue_depth() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_queue_depth) @@ -13287,7 +13328,7 @@ inline ::uint32_t XtcpConfig::s3_queue_depth() const { } inline void XtcpConfig::set_s3_queue_depth(::uint32_t value) { _internal_set_s3_queue_depth(value); - SetHasBit(_impl_._has_bits_[2], 0x00008000U); + SetHasBit(_impl_._has_bits_[2], 0x00010000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_queue_depth) } inline ::uint32_t XtcpConfig::_internal_s3_queue_depth() const { @@ -13303,7 +13344,7 @@ inline void XtcpConfig::_internal_set_s3_queue_depth(::uint32_t value) { inline void XtcpConfig::clear_s3_max_buffered_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_max_buffered_bytes_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[2], 0x00010000U); + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); } inline ::uint64_t XtcpConfig::s3_max_buffered_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_max_buffered_bytes) @@ -13311,7 +13352,7 @@ inline ::uint64_t XtcpConfig::s3_max_buffered_bytes() const { } inline void XtcpConfig::set_s3_max_buffered_bytes(::uint64_t value) { _internal_set_s3_max_buffered_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00010000U); + SetHasBit(_impl_._has_bits_[2], 0x00020000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_max_buffered_bytes) } inline ::uint64_t XtcpConfig::_internal_s3_max_buffered_bytes() const { @@ -13391,7 +13432,7 @@ inline void XtcpConfig::set_allocated_s3_spill_dir(::std::string* PROTOBUF_NULLA inline void XtcpConfig::clear_s3_spill_max_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_spill_max_bytes_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[2], 0x00020000U); + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); } inline ::uint64_t XtcpConfig::s3_spill_max_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_spill_max_bytes) @@ -13399,7 +13440,7 @@ inline ::uint64_t XtcpConfig::s3_spill_max_bytes() const { } inline void XtcpConfig::set_s3_spill_max_bytes(::uint64_t value) { _internal_set_s3_spill_max_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00020000U); + SetHasBit(_impl_._has_bits_[2], 0x00040000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_spill_max_bytes) } inline ::uint64_t XtcpConfig::_internal_s3_spill_max_bytes() const { @@ -13411,6 +13452,147 @@ inline void XtcpConfig::_internal_set_s3_spill_max_bytes(::uint64_t value) { _impl_.s3_spill_max_bytes_ = value; } +// .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { +inline bool XtcpConfig::has_tcp_write_timeout() const { + bool value = CheckHasBit(_impl_._has_bits_[1], 0x01000000U); + PROTOBUF_ASSUME(!value || _impl_.tcp_write_timeout_ != nullptr); + return value; +} +inline const ::google::protobuf::Duration& XtcpConfig::_internal_tcp_write_timeout() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Duration* p = _impl_.tcp_write_timeout_; + return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::google::protobuf::Duration>(&::google::protobuf::Duration_globals_); +} +inline const ::google::protobuf::Duration& XtcpConfig::tcp_write_timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.tcp_write_timeout) + return _internal_tcp_write_timeout(); +} +inline void XtcpConfig::unsafe_arena_set_allocated_tcp_write_timeout( + ::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tcp_write_timeout_); + } + _impl_.tcp_write_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x01000000U); + } else { + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.tcp_write_timeout) +} +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_tcp_write_timeout() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ::google::protobuf::Duration* released = _impl_.tcp_write_timeout_; + _impl_.tcp_write_timeout_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_release_tcp_write_timeout() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.tcp_write_timeout) + + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ::google::protobuf::Duration* temp = _impl_.tcp_write_timeout_; + _impl_.tcp_write_timeout_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_mutable_tcp_write_timeout() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.tcp_write_timeout_ == nullptr) { + auto* p = Super_::DefaultConstruct<::google::protobuf::Duration>(GetArena()); + _impl_.tcp_write_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); + } + return _impl_.tcp_write_timeout_; +} +inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_tcp_write_timeout() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x01000000U); + ::google::protobuf::Duration* _msg = _internal_mutable_tcp_write_timeout(); + // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.tcp_write_timeout) + return _msg; +} +inline void XtcpConfig::set_allocated_tcp_write_timeout(::google::protobuf::Duration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.tcp_write_timeout_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + SetHasBit(_impl_._has_bits_[1], 0x01000000U); + } else { + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + } + + _impl_.tcp_write_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + // @@protoc_insertion_point(field_set_allocated:xtcp_config.v1.XtcpConfig.tcp_write_timeout) +} + +// uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { +inline void XtcpConfig::clear_tcp_queue_depth() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tcp_queue_depth_ = 0u; + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); +} +inline ::uint32_t XtcpConfig::tcp_queue_depth() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.tcp_queue_depth) + return _internal_tcp_queue_depth(); +} +inline void XtcpConfig::set_tcp_queue_depth(::uint32_t value) { + _internal_set_tcp_queue_depth(value); + SetHasBit(_impl_._has_bits_[2], 0x00100000U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.tcp_queue_depth) +} +inline ::uint32_t XtcpConfig::_internal_tcp_queue_depth() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.tcp_queue_depth_; +} +inline void XtcpConfig::_internal_set_tcp_queue_depth(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tcp_queue_depth_ = value; +} + +// uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { +inline void XtcpConfig::clear_tcp_max_buffered_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tcp_max_buffered_bytes_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); +} +inline ::uint64_t XtcpConfig::tcp_max_buffered_bytes() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.tcp_max_buffered_bytes) + return _internal_tcp_max_buffered_bytes(); +} +inline void XtcpConfig::set_tcp_max_buffered_bytes(::uint64_t value) { + _internal_set_tcp_max_buffered_bytes(value); + SetHasBit(_impl_._has_bits_[2], 0x00080000U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.tcp_max_buffered_bytes) +} +inline ::uint64_t XtcpConfig::_internal_tcp_max_buffered_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.tcp_max_buffered_bytes_; +} +inline void XtcpConfig::_internal_set_tcp_max_buffered_bytes(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.tcp_max_buffered_bytes_ = value; +} + // string hostname = 130 [json_name = "hostname", (.buf.validate.field) = { inline void XtcpConfig::clear_hostname() { ::google::protobuf::internal::TSanWrite(&_impl_); @@ -13735,7 +13917,7 @@ inline void XtcpConfig::set_allocated_daemon_version(::std::string* PROTOBUF_NUL inline void XtcpConfig::clear_ipv4_ttl() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ipv4_ttl_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00040000U); + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); } inline ::uint32_t XtcpConfig::ipv4_ttl() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.ipv4_ttl) @@ -13743,7 +13925,7 @@ inline ::uint32_t XtcpConfig::ipv4_ttl() const { } inline void XtcpConfig::set_ipv4_ttl(::uint32_t value) { _internal_set_ipv4_ttl(value); - SetHasBit(_impl_._has_bits_[2], 0x00040000U); + SetHasBit(_impl_._has_bits_[2], 0x00200000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.ipv4_ttl) } inline ::uint32_t XtcpConfig::_internal_ipv4_ttl() const { @@ -13759,7 +13941,7 @@ inline void XtcpConfig::_internal_set_ipv4_ttl(::uint32_t value) { inline void XtcpConfig::clear_ipv6_hop_limit() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ipv6_hop_limit_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00080000U); + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); } inline ::uint32_t XtcpConfig::ipv6_hop_limit() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.ipv6_hop_limit) @@ -13767,7 +13949,7 @@ inline ::uint32_t XtcpConfig::ipv6_hop_limit() const { } inline void XtcpConfig::set_ipv6_hop_limit(::uint32_t value) { _internal_set_ipv6_hop_limit(value); - SetHasBit(_impl_._has_bits_[2], 0x00080000U); + SetHasBit(_impl_._has_bits_[2], 0x00400000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.ipv6_hop_limit) } inline ::uint32_t XtcpConfig::_internal_ipv6_hop_limit() const { @@ -13781,14 +13963,14 @@ inline void XtcpConfig::_internal_set_ipv6_hop_limit(::uint32_t value) { // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { inline bool XtcpConfig::has_listener_auth() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x01000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x02000000U); PROTOBUF_ASSUME(!value || _impl_.listener_auth_ != nullptr); return value; } inline void XtcpConfig::clear_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.listener_auth_ != nullptr) _impl_.listener_auth_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } inline const ::xtcp_config::v1::ListenerAuth& XtcpConfig::_internal_listener_auth() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -13807,16 +13989,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_listener_auth( } _impl_.listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.listener_auth) } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::release_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); ::xtcp_config::v1::ListenerAuth* released = _impl_.listener_auth_; _impl_.listener_auth_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13836,7 +14018,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::unsafe_are ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.listener_auth) - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); ::xtcp_config::v1::ListenerAuth* temp = _impl_.listener_auth_; _impl_.listener_auth_ = nullptr; return temp; @@ -13851,7 +14033,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::_internal_m } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::mutable_listener_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); ::xtcp_config::v1::ListenerAuth* _msg = _internal_mutable_listener_auth(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.listener_auth) return _msg; @@ -13868,9 +14050,9 @@ inline void XtcpConfig::set_allocated_listener_auth(::xtcp_config::v1::ListenerA if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } _impl_.listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); @@ -13879,14 +14061,14 @@ inline void XtcpConfig::set_allocated_listener_auth(::xtcp_config::v1::ListenerA // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { inline bool XtcpConfig::has_prometheus_listener() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x02000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x04000000U); PROTOBUF_ASSUME(!value || _impl_.prometheus_listener_ != nullptr); return value; } inline void XtcpConfig::clear_prometheus_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.prometheus_listener_ != nullptr) _impl_.prometheus_listener_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } inline const ::xtcp_config::v1::ListenerEndpoint& XtcpConfig::_internal_prometheus_listener() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -13905,16 +14087,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_prometheus_listener( } _impl_.prometheus_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.prometheus_listener) } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::release_prometheus_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerEndpoint* released = _impl_.prometheus_listener_; _impl_.prometheus_listener_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13934,7 +14116,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.prometheus_listener) - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerEndpoint* temp = _impl_.prometheus_listener_; _impl_.prometheus_listener_ = nullptr; return temp; @@ -13949,7 +14131,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::_intern } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::mutable_prometheus_listener() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerEndpoint* _msg = _internal_mutable_prometheus_listener(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.prometheus_listener) return _msg; @@ -13966,9 +14148,9 @@ inline void XtcpConfig::set_allocated_prometheus_listener(::xtcp_config::v1::Lis if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } _impl_.prometheus_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); @@ -13977,14 +14159,14 @@ inline void XtcpConfig::set_allocated_prometheus_listener(::xtcp_config::v1::Lis // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { inline bool XtcpConfig::has_admin_listener_auth() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x04000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x08000000U); PROTOBUF_ASSUME(!value || _impl_.admin_listener_auth_ != nullptr); return value; } inline void XtcpConfig::clear_admin_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.admin_listener_auth_ != nullptr) _impl_.admin_listener_auth_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } inline const ::xtcp_config::v1::ListenerAuth& XtcpConfig::_internal_admin_listener_auth() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -14003,16 +14185,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_admin_listener_auth( } _impl_.admin_listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.admin_listener_auth) } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::release_admin_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerAuth* released = _impl_.admin_listener_auth_; _impl_.admin_listener_auth_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14032,7 +14214,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::unsafe_are ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.admin_listener_auth) - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerAuth* temp = _impl_.admin_listener_auth_; _impl_.admin_listener_auth_ = nullptr; return temp; @@ -14047,7 +14229,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::_internal_m } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::mutable_admin_listener_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerAuth* _msg = _internal_mutable_admin_listener_auth(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.admin_listener_auth) return _msg; @@ -14064,9 +14246,9 @@ inline void XtcpConfig::set_allocated_admin_listener_auth(::xtcp_config::v1::Lis if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } _impl_.admin_listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); @@ -14077,7 +14259,7 @@ inline void XtcpConfig::set_allocated_admin_listener_auth(::xtcp_config::v1::Lis inline void XtcpConfig::clear_grpc_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.grpc_port_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00100000U); + ClearHasBit(_impl_._has_bits_[2], 0x00800000U); } inline ::uint32_t XtcpConfig::grpc_port() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.grpc_port) @@ -14085,7 +14267,7 @@ inline ::uint32_t XtcpConfig::grpc_port() const { } inline void XtcpConfig::set_grpc_port(::uint32_t value) { _internal_set_grpc_port(value); - SetHasBit(_impl_._has_bits_[2], 0x00100000U); + SetHasBit(_impl_._has_bits_[2], 0x00800000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.grpc_port) } inline ::uint32_t XtcpConfig::_internal_grpc_port() const { @@ -14099,14 +14281,14 @@ inline void XtcpConfig::_internal_set_grpc_port(::uint32_t value) { // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { inline bool XtcpConfig::has_grpc_listener() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x08000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x10000000U); PROTOBUF_ASSUME(!value || _impl_.grpc_listener_ != nullptr); return value; } inline void XtcpConfig::clear_grpc_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.grpc_listener_ != nullptr) _impl_.grpc_listener_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } inline const ::xtcp_config::v1::ListenerEndpoint& XtcpConfig::_internal_grpc_listener() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -14125,16 +14307,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_grpc_listener( } _impl_.grpc_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.grpc_listener) } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::release_grpc_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerEndpoint* released = _impl_.grpc_listener_; _impl_.grpc_listener_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14154,7 +14336,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.grpc_listener) - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerEndpoint* temp = _impl_.grpc_listener_; _impl_.grpc_listener_ = nullptr; return temp; @@ -14169,7 +14351,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::_intern } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::mutable_grpc_listener() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerEndpoint* _msg = _internal_mutable_grpc_listener(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.grpc_listener) return _msg; @@ -14186,9 +14368,9 @@ inline void XtcpConfig::set_allocated_grpc_listener(::xtcp_config::v1::ListenerE if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } _impl_.grpc_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); @@ -14382,7 +14564,7 @@ inline void XtcpConfig::set_allocated_pyroscope_app_name(::std::string* PROTOBUF inline void XtcpConfig::clear_pyroscope_sample_hz() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pyroscope_sample_hz_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00200000U); + ClearHasBit(_impl_._has_bits_[2], 0x01000000U); } inline ::uint32_t XtcpConfig::pyroscope_sample_hz() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.pyroscope_sample_hz) @@ -14390,7 +14572,7 @@ inline ::uint32_t XtcpConfig::pyroscope_sample_hz() const { } inline void XtcpConfig::set_pyroscope_sample_hz(::uint32_t value) { _internal_set_pyroscope_sample_hz(value); - SetHasBit(_impl_._has_bits_[2], 0x00200000U); + SetHasBit(_impl_._has_bits_[2], 0x01000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.pyroscope_sample_hz) } inline ::uint32_t XtcpConfig::_internal_pyroscope_sample_hz() const { @@ -14406,7 +14588,7 @@ inline void XtcpConfig::_internal_set_pyroscope_sample_hz(::uint32_t value) { inline void XtcpConfig::clear_pyroscope_upload_interval_sec() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pyroscope_upload_interval_sec_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00400000U); + ClearHasBit(_impl_._has_bits_[2], 0x02000000U); } inline ::uint32_t XtcpConfig::pyroscope_upload_interval_sec() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.pyroscope_upload_interval_sec) @@ -14414,7 +14596,7 @@ inline ::uint32_t XtcpConfig::pyroscope_upload_interval_sec() const { } inline void XtcpConfig::set_pyroscope_upload_interval_sec(::uint32_t value) { _internal_set_pyroscope_upload_interval_sec(value); - SetHasBit(_impl_._has_bits_[2], 0x00400000U); + SetHasBit(_impl_._has_bits_[2], 0x02000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.pyroscope_upload_interval_sec) } inline ::uint32_t XtcpConfig::_internal_pyroscope_upload_interval_sec() const { @@ -14430,7 +14612,7 @@ inline void XtcpConfig::_internal_set_pyroscope_upload_interval_sec(::uint32_t v inline void XtcpConfig::clear_resolve_container_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.resolve_container_id_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00800000U); + ClearHasBit(_impl_._has_bits_[2], 0x04000000U); } inline bool XtcpConfig::resolve_container_id() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.resolve_container_id) @@ -14438,7 +14620,7 @@ inline bool XtcpConfig::resolve_container_id() const { } inline void XtcpConfig::set_resolve_container_id(bool value) { _internal_set_resolve_container_id(value); - SetHasBit(_impl_._has_bits_[2], 0x00800000U); + SetHasBit(_impl_._has_bits_[2], 0x04000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.resolve_container_id) } inline bool XtcpConfig::_internal_resolve_container_id() const { @@ -14454,7 +14636,7 @@ inline void XtcpConfig::_internal_set_resolve_container_id(bool value) { inline void XtcpConfig::clear_enrich_container_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_container_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x01000000U); + ClearHasBit(_impl_._has_bits_[2], 0x08000000U); } inline bool XtcpConfig::enrich_container_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_container_enable) @@ -14462,7 +14644,7 @@ inline bool XtcpConfig::enrich_container_enable() const { } inline void XtcpConfig::set_enrich_container_enable(bool value) { _internal_set_enrich_container_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x01000000U); + SetHasBit(_impl_._has_bits_[2], 0x08000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_container_enable) } inline bool XtcpConfig::_internal_enrich_container_enable() const { @@ -14542,7 +14724,7 @@ inline void XtcpConfig::set_allocated_docker_socket_path(::std::string* PROTOBUF inline void XtcpConfig::clear_enrich_lldp_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_lldp_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x02000000U); + ClearHasBit(_impl_._has_bits_[2], 0x10000000U); } inline bool XtcpConfig::enrich_lldp_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_lldp_enable) @@ -14550,7 +14732,7 @@ inline bool XtcpConfig::enrich_lldp_enable() const { } inline void XtcpConfig::set_enrich_lldp_enable(bool value) { _internal_set_enrich_lldp_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x02000000U); + SetHasBit(_impl_._has_bits_[2], 0x10000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_lldp_enable) } inline bool XtcpConfig::_internal_enrich_lldp_enable() const { @@ -14694,7 +14876,7 @@ inline void XtcpConfig::set_allocated_lldpd_version_hint(::std::string* PROTOBUF inline void XtcpConfig::clear_enrich_nic_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_nic_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x04000000U); + ClearHasBit(_impl_._has_bits_[2], 0x20000000U); } inline bool XtcpConfig::enrich_nic_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_nic_enable) @@ -14702,7 +14884,7 @@ inline bool XtcpConfig::enrich_nic_enable() const { } inline void XtcpConfig::set_enrich_nic_enable(bool value) { _internal_set_enrich_nic_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x04000000U); + SetHasBit(_impl_._has_bits_[2], 0x20000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_nic_enable) } inline bool XtcpConfig::_internal_enrich_nic_enable() const { @@ -14718,7 +14900,7 @@ inline void XtcpConfig::_internal_set_enrich_nic_enable(bool value) { inline void XtcpConfig::clear_uplink_count() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.uplink_count_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x08000000U); + ClearHasBit(_impl_._has_bits_[2], 0x40000000U); } inline ::uint32_t XtcpConfig::uplink_count() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.uplink_count) @@ -14726,7 +14908,7 @@ inline ::uint32_t XtcpConfig::uplink_count() const { } inline void XtcpConfig::set_uplink_count(::uint32_t value) { _internal_set_uplink_count(value); - SetHasBit(_impl_._has_bits_[2], 0x08000000U); + SetHasBit(_impl_._has_bits_[2], 0x40000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.uplink_count) } inline ::uint32_t XtcpConfig::_internal_uplink_count() const { @@ -14814,7 +14996,7 @@ XtcpConfig::_internal_mutable_uplink_interfaces() { inline void XtcpConfig::clear_populate_nsid() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.populate_nsid_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x10000000U); + ClearHasBit(_impl_._has_bits_[2], 0x80000000U); } inline bool XtcpConfig::populate_nsid() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.populate_nsid) @@ -14822,7 +15004,7 @@ inline bool XtcpConfig::populate_nsid() const { } inline void XtcpConfig::set_populate_nsid(bool value) { _internal_set_populate_nsid(value); - SetHasBit(_impl_._has_bits_[2], 0x10000000U); + SetHasBit(_impl_._has_bits_[2], 0x80000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.populate_nsid) } inline bool XtcpConfig::_internal_populate_nsid() const { @@ -14838,7 +15020,7 @@ inline void XtcpConfig::_internal_set_populate_nsid(bool value) { inline void XtcpConfig::clear_enrich_asn_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_asn_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x20000000U); + ClearHasBit(_impl_._has_bits_[3], 0x00000001U); } inline bool XtcpConfig::enrich_asn_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_asn_enable) @@ -14846,7 +15028,7 @@ inline bool XtcpConfig::enrich_asn_enable() const { } inline void XtcpConfig::set_enrich_asn_enable(bool value) { _internal_set_enrich_asn_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x20000000U); + SetHasBit(_impl_._has_bits_[3], 0x00000001U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_asn_enable) } inline bool XtcpConfig::_internal_enrich_asn_enable() const { @@ -14924,7 +15106,7 @@ inline void XtcpConfig::set_allocated_asn_db_path(::std::string* PROTOBUF_NULLAB // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; inline bool XtcpConfig::has_asn_refresh_interval() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x10000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x20000000U); PROTOBUF_ASSUME(!value || _impl_.asn_refresh_interval_ != nullptr); return value; } @@ -14945,16 +15127,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_asn_refresh_interval( } _impl_.asn_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.asn_refresh_interval) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_asn_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); ::google::protobuf::Duration* released = _impl_.asn_refresh_interval_; _impl_.asn_refresh_interval_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14974,7 +15156,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.asn_refresh_interval) - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); ::google::protobuf::Duration* temp = _impl_.asn_refresh_interval_; _impl_.asn_refresh_interval_ = nullptr; return temp; @@ -14989,7 +15171,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_asn_refresh_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); ::google::protobuf::Duration* _msg = _internal_mutable_asn_refresh_interval(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.asn_refresh_interval) return _msg; @@ -15006,9 +15188,9 @@ inline void XtcpConfig::set_allocated_asn_refresh_interval(::google::protobuf::D if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } _impl_.asn_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -15147,7 +15329,7 @@ inline void XtcpConfig::set_allocated_ipmeta_cache_path(::std::string* PROTOBUF_ inline void XtcpConfig::clear_enrich_locality_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_locality_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x40000000U); + ClearHasBit(_impl_._has_bits_[3], 0x00000002U); } inline bool XtcpConfig::enrich_locality_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_locality_enable) @@ -15155,7 +15337,7 @@ inline bool XtcpConfig::enrich_locality_enable() const { } inline void XtcpConfig::set_enrich_locality_enable(bool value) { _internal_set_enrich_locality_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x40000000U); + SetHasBit(_impl_._has_bits_[3], 0x00000002U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_locality_enable) } inline bool XtcpConfig::_internal_enrich_locality_enable() const { @@ -15169,7 +15351,7 @@ inline void XtcpConfig::_internal_set_enrich_locality_enable(bool value) { // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; inline bool XtcpConfig::has_locality_refresh_interval() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x20000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x40000000U); PROTOBUF_ASSUME(!value || _impl_.locality_refresh_interval_ != nullptr); return value; } @@ -15190,16 +15372,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_locality_refresh_interval( } _impl_.locality_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.locality_refresh_interval) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_locality_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* released = _impl_.locality_refresh_interval_; _impl_.locality_refresh_interval_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -15219,7 +15401,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.locality_refresh_interval) - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* temp = _impl_.locality_refresh_interval_; _impl_.locality_refresh_interval_ = nullptr; return temp; @@ -15234,7 +15416,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_locality_refresh_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* _msg = _internal_mutable_locality_refresh_interval(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.locality_refresh_interval) return _msg; @@ -15251,9 +15433,9 @@ inline void XtcpConfig::set_allocated_locality_refresh_interval(::google::protob if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } _impl_.locality_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -15264,7 +15446,7 @@ inline void XtcpConfig::set_allocated_locality_refresh_interval(::google::protob inline void XtcpConfig::clear_locality_events_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locality_events_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x80000000U); + ClearHasBit(_impl_._has_bits_[3], 0x00000004U); } inline bool XtcpConfig::locality_events_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.locality_events_enable) @@ -15272,7 +15454,7 @@ inline bool XtcpConfig::locality_events_enable() const { } inline void XtcpConfig::set_locality_events_enable(bool value) { _internal_set_locality_events_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x80000000U); + SetHasBit(_impl_._has_bits_[3], 0x00000004U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.locality_events_enable) } inline bool XtcpConfig::_internal_locality_events_enable() const { @@ -15286,14 +15468,14 @@ inline void XtcpConfig::_internal_set_locality_events_enable(bool value) { // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; inline bool XtcpConfig::has_link_monitor() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x40000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x80000000U); PROTOBUF_ASSUME(!value || _impl_.link_monitor_ != nullptr); return value; } inline void XtcpConfig::clear_link_monitor() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.link_monitor_ != nullptr) _impl_.link_monitor_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } inline const ::xtcp_config::v1::LinkMonitorConfig& XtcpConfig::_internal_link_monitor() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -15312,16 +15494,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_link_monitor( } _impl_.link_monitor_ = reinterpret_cast<::xtcp_config::v1::LinkMonitorConfig*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.link_monitor) } inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NULLABLE XtcpConfig::release_link_monitor() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); ::xtcp_config::v1::LinkMonitorConfig* released = _impl_.link_monitor_; _impl_.link_monitor_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -15341,7 +15523,7 @@ inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NULLABLE XtcpConfig::unsaf ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.link_monitor) - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); ::xtcp_config::v1::LinkMonitorConfig* temp = _impl_.link_monitor_; _impl_.link_monitor_ = nullptr; return temp; @@ -15356,7 +15538,7 @@ inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NONNULL XtcpConfig::_inter } inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NONNULL XtcpConfig::mutable_link_monitor() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); ::xtcp_config::v1::LinkMonitorConfig* _msg = _internal_mutable_link_monitor(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.link_monitor) return _msg; @@ -15373,9 +15555,9 @@ inline void XtcpConfig::set_allocated_link_monitor(::xtcp_config::v1::LinkMonito if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } _impl_.link_monitor_ = reinterpret_cast<::xtcp_config::v1::LinkMonitorConfig*>(value); diff --git a/gen/dart/xtcp_config/v1/xtcp_config.pb.dart b/gen/dart/xtcp_config/v1/xtcp_config.pb.dart index e625f2f68..cd5c3dedf 100644 --- a/gen/dart/xtcp_config/v1/xtcp_config.pb.dart +++ b/gen/dart/xtcp_config/v1/xtcp_config.pb.dart @@ -1870,6 +1870,9 @@ class XtcpConfig extends $pb.GeneratedMessage { $fixnum.Int64? s3MaxBufferedBytes, $core.String? s3SpillDir, $fixnum.Int64? s3SpillMaxBytes, + $1.Duration? tcpWriteTimeout, + $core.int? tcpQueueDepth, + $fixnum.Int64? tcpMaxBufferedBytes, $core.String? hostname, $core.String? location, $core.String? label, @@ -1987,6 +1990,10 @@ class XtcpConfig extends $pb.GeneratedMessage { result.s3MaxBufferedBytes = s3MaxBufferedBytes; if (s3SpillDir != null) result.s3SpillDir = s3SpillDir; if (s3SpillMaxBytes != null) result.s3SpillMaxBytes = s3SpillMaxBytes; + if (tcpWriteTimeout != null) result.tcpWriteTimeout = tcpWriteTimeout; + if (tcpQueueDepth != null) result.tcpQueueDepth = tcpQueueDepth; + if (tcpMaxBufferedBytes != null) + result.tcpMaxBufferedBytes = tcpMaxBufferedBytes; if (hostname != null) result.hostname = hostname; if (location != null) result.location = location; if (label != null) result.label = label; @@ -2156,6 +2163,13 @@ class XtcpConfig extends $pb.GeneratedMessage { ..a<$fixnum.Int64>( 119, _omitFieldNames ? '' : 's3SpillMaxBytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM<$1.Duration>(120, _omitFieldNames ? '' : 'tcpWriteTimeout', + subBuilder: $1.Duration.$_createMessage) + ..aI(121, _omitFieldNames ? '' : 'tcpQueueDepth', + fieldType: $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>( + 122, _omitFieldNames ? '' : 'tcpMaxBufferedBytes', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) ..aOS(130, _omitFieldNames ? '' : 'hostname') ..aOS(131, _omitFieldNames ? '' : 'location') ..aOS(132, _omitFieldNames ? '' : 'label') @@ -3021,17 +3035,55 @@ class XtcpConfig extends $pb.GeneratedMessage { @$pb.TagNumber(119) void clearS3SpillMaxBytes() => $_clearField(119); + /// Deadline on a single tcp-destination write (and dial), bounding a wedged + /// route to the timeout instead of the TCP retransmit window (~15.4 min at + /// the prod-default tcp_retries2=15). 0 = 30s. + @$pb.TagNumber(120) + $1.Duration get tcpWriteTimeout => $_getN(60); + @$pb.TagNumber(120) + set tcpWriteTimeout($1.Duration value) => $_setField(120, value); + @$pb.TagNumber(120) + $core.bool hasTcpWriteTimeout() => $_has(60); + @$pb.TagNumber(120) + void clearTcpWriteTimeout() => $_clearField(120); + @$pb.TagNumber(120) + $1.Duration ensureTcpWriteTimeout() => $_ensure(60); + + /// Envelopes queued between the poller and the tcp worker. Past this depth + /// the oldest is dropped (xtcp_tcp_dropped_total{reason="queue_depth"}), so + /// a wedged sink never blocks polling. 0 = 16. + @$pb.TagNumber(121) + $core.int get tcpQueueDepth => $_getIZ(61); + @$pb.TagNumber(121) + set tcpQueueDepth($core.int value) => $_setUnsignedInt32(61, value); + @$pb.TagNumber(121) + $core.bool hasTcpQueueDepth() => $_has(61); + @$pb.TagNumber(121) + void clearTcpQueueDepth() => $_clearField(121); + + /// Marshaled envelope bytes the tcp queue may hold. Past this the oldest + /// envelope is dropped (reason="buffered_bytes"); the newest is always + /// kept. 0 = no byte bound (the depth bound alone). + @$pb.TagNumber(122) + $fixnum.Int64 get tcpMaxBufferedBytes => $_getI64(62); + @$pb.TagNumber(122) + set tcpMaxBufferedBytes($fixnum.Int64 value) => $_setInt64(62, value); + @$pb.TagNumber(122) + $core.bool hasTcpMaxBufferedBytes() => $_has(62); + @$pb.TagNumber(122) + void clearTcpMaxBufferedBytes() => $_clearField(122); + /// Hostname override. When empty the daemon uses os.Hostname(); set this to /// stamp an explicit hostname on records — required in containers, where /// os.Hostname() returns the container id, not the host. Set via -hostname /// flag or XTCP_HOSTNAME env (NOT HOSTNAME, which Docker sets to the /// container id). @$pb.TagNumber(130) - $core.String get hostname => $_getSZ(60); + $core.String get hostname => $_getSZ(63); @$pb.TagNumber(130) - set hostname($core.String value) => $_setString(60, value); + set hostname($core.String value) => $_setString(63, value); @$pb.TagNumber(130) - $core.bool hasHostname() => $_has(60); + $core.bool hasHostname() => $_has(63); @$pb.TagNumber(130) void clearHostname() => $_clearField(130); @@ -3039,31 +3091,31 @@ class XtcpConfig extends $pb.GeneratedMessage { /// region, site, …). Generic; stamped on every record's `location` field. /// Set via -location flag or LOCATION env. @$pb.TagNumber(131) - $core.String get location => $_getSZ(61); + $core.String get location => $_getSZ(64); @$pb.TagNumber(131) - set location($core.String value) => $_setString(61, value); + set location($core.String value) => $_setString(64, value); @$pb.TagNumber(131) - $core.bool hasLocation() => $_has(61); + $core.bool hasLocation() => $_has(64); @$pb.TagNumber(131) void clearLocation() => $_clearField(131); /// Label applied to the protobuf @$pb.TagNumber(132) - $core.String get label => $_getSZ(62); + $core.String get label => $_getSZ(65); @$pb.TagNumber(132) - set label($core.String value) => $_setString(62, value); + set label($core.String value) => $_setString(65, value); @$pb.TagNumber(132) - $core.bool hasLabel() => $_has(62); + $core.bool hasLabel() => $_has(65); @$pb.TagNumber(132) void clearLabel() => $_clearField(132); /// Tag applied to the protobuf @$pb.TagNumber(133) - $core.String get tag => $_getSZ(63); + $core.String get tag => $_getSZ(66); @$pb.TagNumber(133) - set tag($core.String value) => $_setString(63, value); + set tag($core.String value) => $_setString(66, value); @$pb.TagNumber(133) - $core.bool hasTag() => $_has(63); + $core.bool hasTag() => $_has(66); @$pb.TagNumber(133) void clearTag() => $_clearField(133); @@ -3072,11 +3124,11 @@ class XtcpConfig extends $pb.GeneratedMessage { /// vars, not a user flag; informational only (debugging which binary produced a /// row). See XtcpFlatRecord.daemon_version. @$pb.TagNumber(134) - $core.String get daemonVersion => $_getSZ(64); + $core.String get daemonVersion => $_getSZ(67); @$pb.TagNumber(134) - set daemonVersion($core.String value) => $_setString(64, value); + set daemonVersion($core.String value) => $_setString(67, value); @$pb.TagNumber(134) - $core.bool hasDaemonVersion() => $_has(64); + $core.bool hasDaemonVersion() => $_has(67); @$pb.TagNumber(134) void clearDaemonVersion() => $_clearField(134); @@ -3086,22 +3138,22 @@ class XtcpConfig extends $pb.GeneratedMessage { /// analogue of the host nftables TTL clamp. Set via -ipv4Ttl / IPV4_TTL. /// (cf. prometheus/exporter-toolkit#396.) @$pb.TagNumber(150) - $core.int get ipv4Ttl => $_getIZ(65); + $core.int get ipv4Ttl => $_getIZ(68); @$pb.TagNumber(150) - set ipv4Ttl($core.int value) => $_setUnsignedInt32(65, value); + set ipv4Ttl($core.int value) => $_setUnsignedInt32(68, value); @$pb.TagNumber(150) - $core.bool hasIpv4Ttl() => $_has(65); + $core.bool hasIpv4Ttl() => $_has(68); @$pb.TagNumber(150) void clearIpv4Ttl() => $_clearField(150); /// Outgoing IPv6 unicast hop limit for xtcp2's own TCP listeners. 0 = kernel /// default. Same intent as ipv4_ttl. Set via -ipv6HopLimit / IPV6_HOP_LIMIT. @$pb.TagNumber(151) - $core.int get ipv6HopLimit => $_getIZ(66); + $core.int get ipv6HopLimit => $_getIZ(69); @$pb.TagNumber(151) - set ipv6HopLimit($core.int value) => $_setUnsignedInt32(66, value); + set ipv6HopLimit($core.int value) => $_setUnsignedInt32(69, value); @$pb.TagNumber(151) - $core.bool hasIpv6HopLimit() => $_has(66); + $core.bool hasIpv6HopLimit() => $_has(69); @$pb.TagNumber(151) void clearIpv6HopLimit() => $_clearField(151); @@ -3111,28 +3163,28 @@ class XtcpConfig extends $pb.GeneratedMessage { /// the read credential: it reaches only methods marked ACCESS_READ. /// Secrets are redacted from every ConfigService response. @$pb.TagNumber(152) - ListenerAuth get listenerAuth => $_getN(67); + ListenerAuth get listenerAuth => $_getN(70); @$pb.TagNumber(152) set listenerAuth(ListenerAuth value) => $_setField(152, value); @$pb.TagNumber(152) - $core.bool hasListenerAuth() => $_has(67); + $core.bool hasListenerAuth() => $_has(70); @$pb.TagNumber(152) void clearListenerAuth() => $_clearField(152); @$pb.TagNumber(152) - ListenerAuth ensureListenerAuth() => $_ensure(67); + ListenerAuth ensureListenerAuth() => $_ensure(70); /// Prometheus / pprof / health listener endpoint. When unset, the daemon /// keeps the legacy TCP behavior from -promListen / PROM_LISTEN. @$pb.TagNumber(153) - ListenerEndpoint get prometheusListener => $_getN(68); + ListenerEndpoint get prometheusListener => $_getN(71); @$pb.TagNumber(153) set prometheusListener(ListenerEndpoint value) => $_setField(153, value); @$pb.TagNumber(153) - $core.bool hasPrometheusListener() => $_has(68); + $core.bool hasPrometheusListener() => $_has(71); @$pb.TagNumber(153) void clearPrometheusListener() => $_clearField(153); @$pb.TagNumber(153) - ListenerEndpoint ensurePrometheusListener() => $_ensure(68); + ListenerEndpoint ensurePrometheusListener() => $_ensure(71); /// Admin credential. When set, ACCESS_ADMIN methods (ConfigService.Set, the /// runtime triggers, link-monitor rebaseline, /debug/pprof) require it, and @@ -3140,47 +3192,47 @@ class XtcpConfig extends $pb.GeneratedMessage { /// listener_auth behaviour. Secrets are redacted from ConfigService /// responses. @$pb.TagNumber(154) - ListenerAuth get adminListenerAuth => $_getN(69); + ListenerAuth get adminListenerAuth => $_getN(72); @$pb.TagNumber(154) set adminListenerAuth(ListenerAuth value) => $_setField(154, value); @$pb.TagNumber(154) - $core.bool hasAdminListenerAuth() => $_has(69); + $core.bool hasAdminListenerAuth() => $_has(72); @$pb.TagNumber(154) void clearAdminListenerAuth() => $_clearField(154); @$pb.TagNumber(154) - ListenerAuth ensureAdminListenerAuth() => $_ensure(69); + ListenerAuth ensureAdminListenerAuth() => $_ensure(72); /// GRPC listening port /// Legacy: the gRPC port when -grpcPort (or GRPC_PORT) expands into a /// listener. 0 when the listener model configures gRPC. @$pb.TagNumber(160) - $core.int get grpcPort => $_getIZ(70); + $core.int get grpcPort => $_getIZ(73); @$pb.TagNumber(160) - set grpcPort($core.int value) => $_setUnsignedInt32(70, value); + set grpcPort($core.int value) => $_setUnsignedInt32(73, value); @$pb.TagNumber(160) - $core.bool hasGrpcPort() => $_has(70); + $core.bool hasGrpcPort() => $_has(73); @$pb.TagNumber(160) void clearGrpcPort() => $_clearField(160); /// gRPC listener endpoint. When unset, the daemon keeps the legacy TCP /// behavior derived from grpc_port. @$pb.TagNumber(161) - ListenerEndpoint get grpcListener => $_getN(71); + ListenerEndpoint get grpcListener => $_getN(74); @$pb.TagNumber(161) set grpcListener(ListenerEndpoint value) => $_setField(161, value); @$pb.TagNumber(161) - $core.bool hasGrpcListener() => $_has(71); + $core.bool hasGrpcListener() => $_has(74); @$pb.TagNumber(161) void clearGrpcListener() => $_clearField(161); @$pb.TagNumber(161) - ListenerEndpoint ensureGrpcListener() => $_ensure(71); + ListenerEndpoint ensureGrpcListener() => $_ensure(74); /// Every listener the daemon opens (-listener, LISTENERS). Empty means the /// default: one UDS, /run/xtcp2/metrics.sock mode 0600, raw bearer auth, /// serving health, metrics and metrics-detail. The legacy -promListen*, /// -grpc* and -linkMonitorIPListen flags expand into entries here. @$pb.TagNumber(162) - $pb.PbList get listeners => $_getList(72); + $pb.PbList get listeners => $_getList(75); /// Pyroscope continuous-profiling server URL (e.g. /// http://127.0.0.1:4040). When set, the daemon streams CPU, @@ -3190,11 +3242,11 @@ class XtcpConfig extends $pb.GeneratedMessage { /// Grafana Cloud Pyroscope) and point xtcp2 at it for live profile /// data without restarts. @$pb.TagNumber(170) - $core.String get pyroscopeUrl => $_getSZ(73); + $core.String get pyroscopeUrl => $_getSZ(76); @$pb.TagNumber(170) - set pyroscopeUrl($core.String value) => $_setString(73, value); + set pyroscopeUrl($core.String value) => $_setString(76, value); @$pb.TagNumber(170) - $core.bool hasPyroscopeUrl() => $_has(73); + $core.bool hasPyroscopeUrl() => $_has(76); @$pb.TagNumber(170) void clearPyroscopeUrl() => $_clearField(170); @@ -3203,34 +3255,34 @@ class XtcpConfig extends $pb.GeneratedMessage { /// Set per fleet/role for multi-host environments /// (e.g. "xtcp2.prod.iad", "xtcp2.staging.fra"). @$pb.TagNumber(171) - $core.String get pyroscopeAppName => $_getSZ(74); + $core.String get pyroscopeAppName => $_getSZ(77); @$pb.TagNumber(171) - set pyroscopeAppName($core.String value) => $_setString(74, value); + set pyroscopeAppName($core.String value) => $_setString(77, value); @$pb.TagNumber(171) - $core.bool hasPyroscopeAppName() => $_has(74); + $core.bool hasPyroscopeAppName() => $_has(77); @$pb.TagNumber(171) void clearPyroscopeAppName() => $_clearField(171); /// CPU profile sampling rate in Hz. Default 100. The Pyroscope /// agent uses this to call runtime.SetCPUProfileRate at startup. @$pb.TagNumber(172) - $core.int get pyroscopeSampleHz => $_getIZ(75); + $core.int get pyroscopeSampleHz => $_getIZ(78); @$pb.TagNumber(172) - set pyroscopeSampleHz($core.int value) => $_setUnsignedInt32(75, value); + set pyroscopeSampleHz($core.int value) => $_setUnsignedInt32(78, value); @$pb.TagNumber(172) - $core.bool hasPyroscopeSampleHz() => $_has(75); + $core.bool hasPyroscopeSampleHz() => $_has(78); @$pb.TagNumber(172) void clearPyroscopeSampleHz() => $_clearField(172); /// Profile upload interval (seconds between batched profile /// pushes). Default 15 s. @$pb.TagNumber(173) - $core.int get pyroscopeUploadIntervalSec => $_getIZ(76); + $core.int get pyroscopeUploadIntervalSec => $_getIZ(79); @$pb.TagNumber(173) set pyroscopeUploadIntervalSec($core.int value) => - $_setUnsignedInt32(76, value); + $_setUnsignedInt32(79, value); @$pb.TagNumber(173) - $core.bool hasPyroscopeUploadIntervalSec() => $_has(76); + $core.bool hasPyroscopeUploadIntervalSec() => $_has(79); @$pb.TagNumber(173) void clearPyroscopeUploadIntervalSec() => $_clearField(173); @@ -3241,11 +3293,11 @@ class XtcpConfig extends $pb.GeneratedMessage { /// CONTAINER_ID_RESOLVE env. Needs /sys/fs/cgroup readable (mount it and run /// --cgroupns=host in a container). @$pb.TagNumber(200) - $core.bool get resolveContainerId => $_getBF(77); + $core.bool get resolveContainerId => $_getBF(80); @$pb.TagNumber(200) - set resolveContainerId($core.bool value) => $_setBool(77, value); + set resolveContainerId($core.bool value) => $_setBool(80, value); @$pb.TagNumber(200) - $core.bool hasResolveContainerId() => $_has(77); + $core.bool hasResolveContainerId() => $_has(80); @$pb.TagNumber(200) void clearResolveContainerId() => $_clearField(200); @@ -3253,21 +3305,21 @@ class XtcpConfig extends $pb.GeneratedMessage { /// by joining the socket's owning netns inode against the Docker Engine API /// index over docker_socket_path. Default false. @$pb.TagNumber(201) - $core.bool get enrichContainerEnable => $_getBF(78); + $core.bool get enrichContainerEnable => $_getBF(81); @$pb.TagNumber(201) - set enrichContainerEnable($core.bool value) => $_setBool(78, value); + set enrichContainerEnable($core.bool value) => $_setBool(81, value); @$pb.TagNumber(201) - $core.bool hasEnrichContainerEnable() => $_has(78); + $core.bool hasEnrichContainerEnable() => $_has(81); @$pb.TagNumber(201) void clearEnrichContainerEnable() => $_clearField(201); /// Docker Engine API unix socket. Default "/run/docker.sock". @$pb.TagNumber(202) - $core.String get dockerSocketPath => $_getSZ(79); + $core.String get dockerSocketPath => $_getSZ(82); @$pb.TagNumber(202) - set dockerSocketPath($core.String value) => $_setString(79, value); + set dockerSocketPath($core.String value) => $_setString(82, value); @$pb.TagNumber(202) - $core.bool hasDockerSocketPath() => $_has(79); + $core.bool hasDockerSocketPath() => $_has(82); @$pb.TagNumber(202) void clearDockerSocketPath() => $_clearField(202); @@ -3275,32 +3327,32 @@ class XtcpConfig extends $pb.GeneratedMessage { /// Enrich per-uplink LLDP neighbor labels by reading the lldpd control socket /// (lldpd_socket_path) once at startup. Default false. @$pb.TagNumber(210) - $core.bool get enrichLldpEnable => $_getBF(80); + $core.bool get enrichLldpEnable => $_getBF(83); @$pb.TagNumber(210) - set enrichLldpEnable($core.bool value) => $_setBool(80, value); + set enrichLldpEnable($core.bool value) => $_setBool(83, value); @$pb.TagNumber(210) - $core.bool hasEnrichLldpEnable() => $_has(80); + $core.bool hasEnrichLldpEnable() => $_has(83); @$pb.TagNumber(210) void clearEnrichLldpEnable() => $_clearField(210); /// lldpd control socket. Default "/run/lldpd.socket". @$pb.TagNumber(211) - $core.String get lldpdSocketPath => $_getSZ(81); + $core.String get lldpdSocketPath => $_getSZ(84); @$pb.TagNumber(211) - set lldpdSocketPath($core.String value) => $_setString(81, value); + set lldpdSocketPath($core.String value) => $_setString(84, value); @$pb.TagNumber(211) - $core.bool hasLldpdSocketPath() => $_has(81); + $core.bool hasLldpdSocketPath() => $_has(84); @$pb.TagNumber(211) void clearLldpdSocketPath() => $_clearField(211); /// Optional lldpd version hint ("1.0.13"/"1.0.18") selecting the struct-layout /// descriptor for the wire parser. Empty = auto-detect. Default "". @$pb.TagNumber(212) - $core.String get lldpdVersionHint => $_getSZ(82); + $core.String get lldpdVersionHint => $_getSZ(85); @$pb.TagNumber(212) - set lldpdVersionHint($core.String value) => $_setString(82, value); + set lldpdVersionHint($core.String value) => $_setString(85, value); @$pb.TagNumber(212) - $core.bool hasLldpdVersionHint() => $_has(82); + $core.bool hasLldpdVersionHint() => $_has(85); @$pb.TagNumber(212) void clearLldpdVersionHint() => $_clearField(212); @@ -3308,38 +3360,38 @@ class XtcpConfig extends $pb.GeneratedMessage { /// Enrich per-uplink NIC labels (driver/model/pci/speed/firmware) from sysfs + /// the ethtool ioctl once at startup. Default false. @$pb.TagNumber(220) - $core.bool get enrichNicEnable => $_getBF(83); + $core.bool get enrichNicEnable => $_getBF(86); @$pb.TagNumber(220) - set enrichNicEnable($core.bool value) => $_setBool(83, value); + set enrichNicEnable($core.bool value) => $_setBool(86, value); @$pb.TagNumber(220) - $core.bool hasEnrichNicEnable() => $_has(83); + $core.bool hasEnrichNicEnable() => $_has(86); @$pb.TagNumber(220) void clearEnrichNicEnable() => $_clearField(220); /// Number of host uplink slots to populate (dual-homed hosts = 2). Default 2. @$pb.TagNumber(221) - $core.int get uplinkCount => $_getIZ(84); + $core.int get uplinkCount => $_getIZ(87); @$pb.TagNumber(221) - set uplinkCount($core.int value) => $_setUnsignedInt32(84, value); + set uplinkCount($core.int value) => $_setUnsignedInt32(87, value); @$pb.TagNumber(221) - $core.bool hasUplinkCount() => $_has(84); + $core.bool hasUplinkCount() => $_has(87); @$pb.TagNumber(221) void clearUplinkCount() => $_clearField(221); /// Explicit uplink interface names, slot order. Empty = auto-detect from the /// default IPv4/IPv6 routes. @$pb.TagNumber(222) - $pb.PbList<$core.String> get uplinkInterfaces => $_getList(85); + $pb.PbList<$core.String> get uplinkInterfaces => $_getList(88); /// -- nsid (230-239) /// Populate nsid (record field 32) best-effort via RTM_GETNSID. Usually 0 for /// Docker/containerd namespaces. Default false. @$pb.TagNumber(230) - $core.bool get populateNsid => $_getBF(86); + $core.bool get populateNsid => $_getBF(89); @$pb.TagNumber(230) - set populateNsid($core.bool value) => $_setBool(86, value); + set populateNsid($core.bool value) => $_setBool(89, value); @$pb.TagNumber(230) - $core.bool hasPopulateNsid() => $_has(86); + $core.bool hasPopulateNsid() => $_has(89); @$pb.TagNumber(230) void clearPopulateNsid() => $_clearField(230); @@ -3350,47 +3402,47 @@ class XtcpConfig extends $pb.GeneratedMessage { /// enabled but asn_db_path is missing/unreadable, xtcp2 logs, bumps a counter, /// and leaves both columns empty. Default false. @$pb.TagNumber(240) - $core.bool get enrichAsnEnable => $_getBF(87); + $core.bool get enrichAsnEnable => $_getBF(90); @$pb.TagNumber(240) - set enrichAsnEnable($core.bool value) => $_setBool(87, value); + set enrichAsnEnable($core.bool value) => $_setBool(90, value); @$pb.TagNumber(240) - $core.bool hasEnrichAsnEnable() => $_has(87); + $core.bool hasEnrichAsnEnable() => $_has(90); @$pb.TagNumber(240) void clearEnrichAsnEnable() => $_clearField(240); /// Path to the ipfeed-collector Parquet artifact (prefix -> {asn, /// network_owner}). Default "". @$pb.TagNumber(241) - $core.String get asnDbPath => $_getSZ(88); + $core.String get asnDbPath => $_getSZ(91); @$pb.TagNumber(241) - set asnDbPath($core.String value) => $_setString(88, value); + set asnDbPath($core.String value) => $_setString(91, value); @$pb.TagNumber(241) - $core.bool hasAsnDbPath() => $_has(88); + $core.bool hasAsnDbPath() => $_has(91); @$pb.TagNumber(241) void clearAsnDbPath() => $_clearField(241); /// How often to reload asn_db_path in the background so a refreshed artifact /// is picked up without a restart. 0 = load once at startup, never reload. @$pb.TagNumber(242) - $1.Duration get asnRefreshInterval => $_getN(89); + $1.Duration get asnRefreshInterval => $_getN(92); @$pb.TagNumber(242) set asnRefreshInterval($1.Duration value) => $_setField(242, value); @$pb.TagNumber(242) - $core.bool hasAsnRefreshInterval() => $_has(89); + $core.bool hasAsnRefreshInterval() => $_has(92); @$pb.TagNumber(242) void clearAsnRefreshInterval() => $_clearField(242); @$pb.TagNumber(242) - $1.Duration ensureAsnRefreshInterval() => $_ensure(89); + $1.Duration ensureAsnRefreshInterval() => $_ensure(92); /// Optional zstd-compressed lookup artifact baked into the image and used at /// startup when no fresher writable cache is available. Default is supplied /// by the daemon CLI as /share/xtcp2/ipmeta/bootstrap.lookup.parquet.zst. @$pb.TagNumber(243) - $core.String get ipmetaBootstrapPath => $_getSZ(90); + $core.String get ipmetaBootstrapPath => $_getSZ(93); @$pb.TagNumber(243) - set ipmetaBootstrapPath($core.String value) => $_setString(90, value); + set ipmetaBootstrapPath($core.String value) => $_setString(93, value); @$pb.TagNumber(243) - $core.bool hasIpmetaBootstrapPath() => $_has(90); + $core.bool hasIpmetaBootstrapPath() => $_has(93); @$pb.TagNumber(243) void clearIpmetaBootstrapPath() => $_clearField(243); @@ -3399,11 +3451,11 @@ class XtcpConfig extends $pb.GeneratedMessage { /// The companion previous.lookup.parquet.zst in the same directory is kept /// as a recovery fallback. @$pb.TagNumber(244) - $core.String get ipmetaCachePath => $_getSZ(91); + $core.String get ipmetaCachePath => $_getSZ(94); @$pb.TagNumber(244) - set ipmetaCachePath($core.String value) => $_setString(91, value); + set ipmetaCachePath($core.String value) => $_setString(94, value); @$pb.TagNumber(244) - $core.bool hasIpmetaCachePath() => $_has(91); + $core.bool hasIpmetaCachePath() => $_has(94); @$pb.TagNumber(244) void clearIpmetaCachePath() => $_clearField(244); @@ -3416,11 +3468,11 @@ class XtcpConfig extends $pb.GeneratedMessage { /// Non-fatal: a per-namespace discovery failure just leaves that namespace's /// sockets unclassified (and is retried with backoff). Default false. @$pb.TagNumber(245) - $core.bool get enrichLocalityEnable => $_getBF(92); + $core.bool get enrichLocalityEnable => $_getBF(95); @$pb.TagNumber(245) - set enrichLocalityEnable($core.bool value) => $_setBool(92, value); + set enrichLocalityEnable($core.bool value) => $_setBool(95, value); @$pb.TagNumber(245) - $core.bool hasEnrichLocalityEnable() => $_has(92); + $core.bool hasEnrichLocalityEnable() => $_has(95); @$pb.TagNumber(245) void clearEnrichLocalityEnable() => $_clearField(245); @@ -3429,15 +3481,15 @@ class XtcpConfig extends $pb.GeneratedMessage { /// namespaces are always snapshotted on the next reconcile regardless. 0 = /// discover once per namespace, never refresh. Daemon default 60s. @$pb.TagNumber(246) - $1.Duration get localityRefreshInterval => $_getN(93); + $1.Duration get localityRefreshInterval => $_getN(96); @$pb.TagNumber(246) set localityRefreshInterval($1.Duration value) => $_setField(246, value); @$pb.TagNumber(246) - $core.bool hasLocalityRefreshInterval() => $_has(93); + $core.bool hasLocalityRefreshInterval() => $_has(96); @$pb.TagNumber(246) void clearLocalityRefreshInterval() => $_clearField(246); @$pb.TagNumber(246) - $1.Duration ensureLocalityRefreshInterval() => $_ensure(93); + $1.Duration ensureLocalityRefreshInterval() => $_ensure(96); /// Keep each namespace's locality snapshot current from rtnetlink /// notifications (link, address and route changes) instead of waiting for @@ -3445,25 +3497,25 @@ class XtcpConfig extends $pb.GeneratedMessage { /// locality_refresh_interval then becomes the backstop, a resync taken /// after that long. Needs enrich_locality_enable. Default false. @$pb.TagNumber(247) - $core.bool get localityEventsEnable => $_getBF(94); + $core.bool get localityEventsEnable => $_getBF(97); @$pb.TagNumber(247) - set localityEventsEnable($core.bool value) => $_setBool(94, value); + set localityEventsEnable($core.bool value) => $_setBool(97, value); @$pb.TagNumber(247) - $core.bool hasLocalityEventsEnable() => $_has(94); + $core.bool hasLocalityEventsEnable() => $_has(97); @$pb.TagNumber(247) void clearLocalityEventsEnable() => $_clearField(247); /// Physical link monitor; see LinkMonitorConfig. @$pb.TagNumber(250) - LinkMonitorConfig get linkMonitor => $_getN(95); + LinkMonitorConfig get linkMonitor => $_getN(98); @$pb.TagNumber(250) set linkMonitor(LinkMonitorConfig value) => $_setField(250, value); @$pb.TagNumber(250) - $core.bool hasLinkMonitor() => $_has(95); + $core.bool hasLinkMonitor() => $_has(98); @$pb.TagNumber(250) void clearLinkMonitor() => $_clearField(250); @$pb.TagNumber(250) - LinkMonitorConfig ensureLinkMonitor() => $_ensure(95); + LinkMonitorConfig ensureLinkMonitor() => $_ensure(98); } class EnabledDeserializers extends $pb.GeneratedMessage { diff --git a/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart b/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart index f11f71f9d..127f66afe 100644 --- a/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart +++ b/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart @@ -1203,6 +1203,31 @@ const XtcpConfig$json = { '8': {}, '10': 's3SpillMaxBytes' }, + { + '1': 'tcp_write_timeout', + '3': 120, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '8': {}, + '10': 'tcpWriteTimeout' + }, + { + '1': 'tcp_queue_depth', + '3': 121, + '4': 1, + '5': 13, + '8': {}, + '10': 'tcpQueueDepth' + }, + { + '1': 'tcp_max_buffered_bytes', + '3': 122, + '4': 1, + '5': 4, + '8': {}, + '10': 'tcpMaxBufferedBytes' + }, {'1': 'hostname', '3': 130, '4': 1, '5': 9, '8': {}, '10': 'hostname'}, {'1': 'location', '3': 131, '4': 1, '5': 9, '8': {}, '10': 'location'}, {'1': 'label', '3': 132, '4': 1, '5': 9, '8': {}, '10': 'label'}, @@ -1503,48 +1528,52 @@ final $typed_data.Uint8List xtcpConfigDescriptor = $convert.base64Decode( 'DUILukgIyAEAKgMYgCBSDHMzUXVldWVEZXB0aBI5ChVzM19tYXhfYnVmZmVyZWRfYnl0ZXMYdS' 'ABKARCBrpIA8gBAFISczNNYXhCdWZmZXJlZEJ5dGVzEkcKDHMzX3NwaWxsX2Rpchh2IAEoCUIl' 'ukgiyAEAch0YgCAyGF5bXlx4MDAtXHgxZlx4N2YtXHg5Zl0qJFIKczNTcGlsbERpchIzChJzM1' - '9zcGlsbF9tYXhfYnl0ZXMYdyABKARCBrpIA8gBAFIPczNTcGlsbE1heEJ5dGVzEkIKCGhvc3Ru' - 'YW1lGIIBIAEoCUIlukgiyAEAch0Y/QEyGF5bXlx4MDAtXHgxZlx4N2YtXHg5Zl0qJFIIaG9zdG' - '5hbWUSQgoIbG9jYXRpb24YgwEgASgJQiW6SCLIAQByHRj9ATIYXlteXHgwMC1ceDFmXHg3Zi1c' - 'eDlmXSokUghsb2NhdGlvbhI7CgVsYWJlbBiEASABKAlCJLpIIcgBAHIcGCgyGF5bXlx4MDAtXH' - 'gxZlx4N2YtXHg5Zl0qJFIFbGFiZWwSNwoDdGFnGIUBIAEoCUIkukghyAEAchwYKDIYXlteXHgw' - 'MC1ceDFmXHg3Zi1ceDlmXSokUgN0YWcSMwoOZGFlbW9uX3ZlcnNpb24YhgEgASgJQgu6SAjIAQ' - 'ByAxj9AVINZGFlbW9uVmVyc2lvbhInCghpcHY0X3R0bBiWASABKA1CC7pICMgBACoDGP8BUgdp' - 'cHY0VHRsEjIKDmlwdjZfaG9wX2xpbWl0GJcBIAEoDUILukgIyAEAKgMY/wFSDGlwdjZIb3BMaW' - '1pdBJKCg1saXN0ZW5lcl9hdXRoGJgBIAEoCzIcLnh0Y3BfY29uZmlnLnYxLkxpc3RlbmVyQXV0' - 'aEIGukgDyAEAUgxsaXN0ZW5lckF1dGgSWgoTcHJvbWV0aGV1c19saXN0ZW5lchiZASABKAsyIC' - '54dGNwX2NvbmZpZy52MS5MaXN0ZW5lckVuZHBvaW50Qga6SAPIAQBSEnByb21ldGhldXNMaXN0' - 'ZW5lchJVChNhZG1pbl9saXN0ZW5lcl9hdXRoGJoBIAEoCzIcLnh0Y3BfY29uZmlnLnYxLkxpc3' - 'RlbmVyQXV0aEIGukgDyAEAUhFhZG1pbkxpc3RlbmVyQXV0aBInCglncnBjX3BvcnQYoAEgASgN' - 'Qgm6SAYqBBj//wNSCGdycGNQb3J0Ek4KDWdycGNfbGlzdGVuZXIYoQEgASgLMiAueHRjcF9jb2' - '5maWcudjEuTGlzdGVuZXJFbmRwb2ludEIGukgDyAEAUgxncnBjTGlzdGVuZXISQQoJbGlzdGVu' - 'ZXJzGKIBIAMoCzIYLnh0Y3BfY29uZmlnLnYxLkxpc3RlbmVyQgi6SAWSAQIQEFIJbGlzdGVuZX' - 'JzEiwKDXB5cm9zY29wZV91cmwYqgEgASgJQga6SAPIAQBSDHB5cm9zY29wZVVybBI1ChJweXJv' - 'c2NvcGVfYXBwX25hbWUYqwEgASgJQga6SAPIAQBSEHB5cm9zY29wZUFwcE5hbWUSNwoTcHlyb3' - 'Njb3BlX3NhbXBsZV9oehisASABKA1CBrpIA8gBAFIRcHlyb3Njb3BlU2FtcGxlSHoSSgodcHly' - 'b3Njb3BlX3VwbG9hZF9pbnRlcnZhbF9zZWMYrQEgASgNQga6SAPIAQBSGnB5cm9zY29wZVVwbG' - '9hZEludGVydmFsU2VjEjkKFHJlc29sdmVfY29udGFpbmVyX2lkGMgBIAEoCEIGukgDyAEAUhJy' - 'ZXNvbHZlQ29udGFpbmVySWQSNwoXZW5yaWNoX2NvbnRhaW5lcl9lbmFibGUYyQEgASgIUhVlbn' - 'JpY2hDb250YWluZXJFbmFibGUSNwoSZG9ja2VyX3NvY2tldF9wYXRoGMoBIAEoCUIIukgFcgMY' - '/wFSEGRvY2tlclNvY2tldFBhdGgSLQoSZW5yaWNoX2xsZHBfZW5hYmxlGNIBIAEoCFIQZW5yaW' - 'NoTGxkcEVuYWJsZRI1ChFsbGRwZF9zb2NrZXRfcGF0aBjTASABKAlCCLpIBXIDGP8BUg9sbGRw' - 'ZFNvY2tldFBhdGgSNgoSbGxkcGRfdmVyc2lvbl9oaW50GNQBIAEoCUIHukgEcgIYEFIQbGxkcG' - 'RWZXJzaW9uSGludBIrChFlbnJpY2hfbmljX2VuYWJsZRjcASABKAhSD2VucmljaE5pY0VuYWJs' - 'ZRIrCgx1cGxpbmtfY291bnQY3QEgASgNQge6SAQqAhgCUgt1cGxpbmtDb3VudBI2ChF1cGxpbm' - 'tfaW50ZXJmYWNlcxjeASADKAlCCLpIBZIBAhACUhB1cGxpbmtJbnRlcmZhY2VzEiQKDXBvcHVs' - 'YXRlX25zaWQY5gEgASgIUgxwb3B1bGF0ZU5zaWQSKwoRZW5yaWNoX2Fzbl9lbmFibGUY8AEgAS' - 'gIUg9lbnJpY2hBc25FbmFibGUSKQoLYXNuX2RiX3BhdGgY8QEgASgJQgi6SAVyAxj/AVIJYXNu' - 'RGJQYXRoEkwKFGFzbl9yZWZyZXNoX2ludGVydmFsGPIBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi' - '5EdXJhdGlvblISYXNuUmVmcmVzaEludGVydmFsEj0KFWlwbWV0YV9ib290c3RyYXBfcGF0aBjz' - 'ASABKAlCCLpIBXIDGP8BUhNpcG1ldGFCb290c3RyYXBQYXRoEjUKEWlwbWV0YV9jYWNoZV9wYX' - 'RoGPQBIAEoCUIIukgFcgMY/wFSD2lwbWV0YUNhY2hlUGF0aBI1ChZlbnJpY2hfbG9jYWxpdHlf' - 'ZW5hYmxlGPUBIAEoCFIUZW5yaWNoTG9jYWxpdHlFbmFibGUSVgoZbG9jYWxpdHlfcmVmcmVzaF' - '9pbnRlcnZhbBj2ASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SF2xvY2FsaXR5UmVm' - 'cmVzaEludGVydmFsEjUKFmxvY2FsaXR5X2V2ZW50c19lbmFibGUY9wEgASgIUhRsb2NhbGl0eU' - 'V2ZW50c0VuYWJsZRJFCgxsaW5rX21vbml0b3IY+gEgASgLMiEueHRjcF9jb25maWcudjEuTGlu' - 'a01vbml0b3JDb25maWdSC2xpbmtNb25pdG9yOnO6SHAabgoPWHRjcENvbmZpZy5wb2xsEjJQb2' - 'xsIHRpbWVvdXQgbXVzdCBiZSBsZXNzIHRoYW4gcG9sbCBwb2xsX2ZyZXF1ZW5jeRondGhpcy5w' - 'b2xsX2ZyZXF1ZW5jeSA+IHRoaXMucG9sbF90aW1lb3V0'); + '9zcGlsbF9tYXhfYnl0ZXMYdyABKARCBrpIA8gBAFIPczNTcGlsbE1heEJ5dGVzElkKEXRjcF93' + 'cml0ZV90aW1lb3V0GHggASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQhK6SA/IAQCqAQ' + 'kiAwiQHDICCAFSD3RjcFdyaXRlVGltZW91dBIzCg90Y3BfcXVldWVfZGVwdGgYeSABKA1CC7pI' + 'CMgBACoDGIAgUg10Y3BRdWV1ZURlcHRoEjsKFnRjcF9tYXhfYnVmZmVyZWRfYnl0ZXMYeiABKA' + 'RCBrpIA8gBAFITdGNwTWF4QnVmZmVyZWRCeXRlcxJCCghob3N0bmFtZRiCASABKAlCJbpIIsgB' + 'AHIdGP0BMhheW15ceDAwLVx4MWZceDdmLVx4OWZdKiRSCGhvc3RuYW1lEkIKCGxvY2F0aW9uGI' + 'MBIAEoCUIlukgiyAEAch0Y/QEyGF5bXlx4MDAtXHgxZlx4N2YtXHg5Zl0qJFIIbG9jYXRpb24S' + 'OwoFbGFiZWwYhAEgASgJQiS6SCHIAQByHBgoMhheW15ceDAwLVx4MWZceDdmLVx4OWZdKiRSBW' + 'xhYmVsEjcKA3RhZxiFASABKAlCJLpIIcgBAHIcGCgyGF5bXlx4MDAtXHgxZlx4N2YtXHg5Zl0q' + 'JFIDdGFnEjMKDmRhZW1vbl92ZXJzaW9uGIYBIAEoCUILukgIyAEAcgMY/QFSDWRhZW1vblZlcn' + 'Npb24SJwoIaXB2NF90dGwYlgEgASgNQgu6SAjIAQAqAxj/AVIHaXB2NFR0bBIyCg5pcHY2X2hv' + 'cF9saW1pdBiXASABKA1CC7pICMgBACoDGP8BUgxpcHY2SG9wTGltaXQSSgoNbGlzdGVuZXJfYX' + 'V0aBiYASABKAsyHC54dGNwX2NvbmZpZy52MS5MaXN0ZW5lckF1dGhCBrpIA8gBAFIMbGlzdGVu' + 'ZXJBdXRoEloKE3Byb21ldGhldXNfbGlzdGVuZXIYmQEgASgLMiAueHRjcF9jb25maWcudjEuTG' + 'lzdGVuZXJFbmRwb2ludEIGukgDyAEAUhJwcm9tZXRoZXVzTGlzdGVuZXISVQoTYWRtaW5fbGlz' + 'dGVuZXJfYXV0aBiaASABKAsyHC54dGNwX2NvbmZpZy52MS5MaXN0ZW5lckF1dGhCBrpIA8gBAF' + 'IRYWRtaW5MaXN0ZW5lckF1dGgSJwoJZ3JwY19wb3J0GKABIAEoDUIJukgGKgQY//8DUghncnBj' + 'UG9ydBJOCg1ncnBjX2xpc3RlbmVyGKEBIAEoCzIgLnh0Y3BfY29uZmlnLnYxLkxpc3RlbmVyRW' + '5kcG9pbnRCBrpIA8gBAFIMZ3JwY0xpc3RlbmVyEkEKCWxpc3RlbmVycxiiASADKAsyGC54dGNw' + 'X2NvbmZpZy52MS5MaXN0ZW5lckIIukgFkgECEBBSCWxpc3RlbmVycxIsCg1weXJvc2NvcGVfdX' + 'JsGKoBIAEoCUIGukgDyAEAUgxweXJvc2NvcGVVcmwSNQoScHlyb3Njb3BlX2FwcF9uYW1lGKsB' + 'IAEoCUIGukgDyAEAUhBweXJvc2NvcGVBcHBOYW1lEjcKE3B5cm9zY29wZV9zYW1wbGVfaHoYrA' + 'EgASgNQga6SAPIAQBSEXB5cm9zY29wZVNhbXBsZUh6EkoKHXB5cm9zY29wZV91cGxvYWRfaW50' + 'ZXJ2YWxfc2VjGK0BIAEoDUIGukgDyAEAUhpweXJvc2NvcGVVcGxvYWRJbnRlcnZhbFNlYxI5Ch' + 'RyZXNvbHZlX2NvbnRhaW5lcl9pZBjIASABKAhCBrpIA8gBAFIScmVzb2x2ZUNvbnRhaW5lcklk' + 'EjcKF2VucmljaF9jb250YWluZXJfZW5hYmxlGMkBIAEoCFIVZW5yaWNoQ29udGFpbmVyRW5hYm' + 'xlEjcKEmRvY2tlcl9zb2NrZXRfcGF0aBjKASABKAlCCLpIBXIDGP8BUhBkb2NrZXJTb2NrZXRQ' + 'YXRoEi0KEmVucmljaF9sbGRwX2VuYWJsZRjSASABKAhSEGVucmljaExsZHBFbmFibGUSNQoRbG' + 'xkcGRfc29ja2V0X3BhdGgY0wEgASgJQgi6SAVyAxj/AVIPbGxkcGRTb2NrZXRQYXRoEjYKEmxs' + 'ZHBkX3ZlcnNpb25faGludBjUASABKAlCB7pIBHICGBBSEGxsZHBkVmVyc2lvbkhpbnQSKwoRZW' + '5yaWNoX25pY19lbmFibGUY3AEgASgIUg9lbnJpY2hOaWNFbmFibGUSKwoMdXBsaW5rX2NvdW50' + 'GN0BIAEoDUIHukgEKgIYAlILdXBsaW5rQ291bnQSNgoRdXBsaW5rX2ludGVyZmFjZXMY3gEgAy' + 'gJQgi6SAWSAQIQAlIQdXBsaW5rSW50ZXJmYWNlcxIkCg1wb3B1bGF0ZV9uc2lkGOYBIAEoCFIM' + 'cG9wdWxhdGVOc2lkEisKEWVucmljaF9hc25fZW5hYmxlGPABIAEoCFIPZW5yaWNoQXNuRW5hYm' + 'xlEikKC2Fzbl9kYl9wYXRoGPEBIAEoCUIIukgFcgMY/wFSCWFzbkRiUGF0aBJMChRhc25fcmVm' + 'cmVzaF9pbnRlcnZhbBjyASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEmFzblJlZn' + 'Jlc2hJbnRlcnZhbBI9ChVpcG1ldGFfYm9vdHN0cmFwX3BhdGgY8wEgASgJQgi6SAVyAxj/AVIT' + 'aXBtZXRhQm9vdHN0cmFwUGF0aBI1ChFpcG1ldGFfY2FjaGVfcGF0aBj0ASABKAlCCLpIBXIDGP' + '8BUg9pcG1ldGFDYWNoZVBhdGgSNQoWZW5yaWNoX2xvY2FsaXR5X2VuYWJsZRj1ASABKAhSFGVu' + 'cmljaExvY2FsaXR5RW5hYmxlElYKGWxvY2FsaXR5X3JlZnJlc2hfaW50ZXJ2YWwY9gEgASgLMh' + 'kuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdsb2NhbGl0eVJlZnJlc2hJbnRlcnZhbBI1ChZs' + 'b2NhbGl0eV9ldmVudHNfZW5hYmxlGPcBIAEoCFIUbG9jYWxpdHlFdmVudHNFbmFibGUSRQoMbG' + 'lua19tb25pdG9yGPoBIAEoCzIhLnh0Y3BfY29uZmlnLnYxLkxpbmtNb25pdG9yQ29uZmlnUgts' + 'aW5rTW9uaXRvcjpzukhwGm4KD1h0Y3BDb25maWcucG9sbBIyUG9sbCB0aW1lb3V0IG11c3QgYm' + 'UgbGVzcyB0aGFuIHBvbGwgcG9sbF9mcmVxdWVuY3kaJ3RoaXMucG9sbF9mcmVxdWVuY3kgPiB0' + 'aGlzLnBvbGxfdGltZW91dA=='); @$core.Deprecated('Use enabledDeserializersDescriptor instead') const EnabledDeserializers$json = { diff --git a/gen/go/xtcp_config/xtcp_config.pb.go b/gen/go/xtcp_config/xtcp_config.pb.go index 465590694..5f8d3e233 100644 --- a/gen/go/xtcp_config/xtcp_config.pb.go +++ b/gen/go/xtcp_config/xtcp_config.pb.go @@ -1786,6 +1786,18 @@ type XtcpConfig struct { // Bytes the spill directory may hold. Past this the oldest spilled // object is deleted (xtcp_s3_spill_total{result="evicted"}). 0 = 1 GiB. S3SpillMaxBytes uint64 `protobuf:"varint,119,opt,name=s3_spill_max_bytes,json=s3SpillMaxBytes,proto3" json:"s3_spill_max_bytes,omitempty"` + // Deadline on a single tcp-destination write (and dial), bounding a wedged + // route to the timeout instead of the TCP retransmit window (~15.4 min at + // the prod-default tcp_retries2=15). 0 = 30s. + TcpWriteTimeout *durationpb.Duration `protobuf:"bytes,120,opt,name=tcp_write_timeout,json=tcpWriteTimeout,proto3" json:"tcp_write_timeout,omitempty"` + // Envelopes queued between the poller and the tcp worker. Past this depth + // the oldest is dropped (xtcp_tcp_dropped_total{reason="queue_depth"}), so + // a wedged sink never blocks polling. 0 = 16. + TcpQueueDepth uint32 `protobuf:"varint,121,opt,name=tcp_queue_depth,json=tcpQueueDepth,proto3" json:"tcp_queue_depth,omitempty"` + // Marshaled envelope bytes the tcp queue may hold. Past this the oldest + // envelope is dropped (reason="buffered_bytes"); the newest is always + // kept. 0 = no byte bound (the depth bound alone). + TcpMaxBufferedBytes uint64 `protobuf:"varint,122,opt,name=tcp_max_buffered_bytes,json=tcpMaxBufferedBytes,proto3" json:"tcp_max_buffered_bytes,omitempty"` // Hostname override. When empty the daemon uses os.Hostname(); set this to // stamp an explicit hostname on records — required in containers, where // os.Hostname() returns the container id, not the host. Set via -hostname @@ -2393,6 +2405,27 @@ func (x *XtcpConfig) GetS3SpillMaxBytes() uint64 { return 0 } +func (x *XtcpConfig) GetTcpWriteTimeout() *durationpb.Duration { + if x != nil { + return x.TcpWriteTimeout + } + return nil +} + +func (x *XtcpConfig) GetTcpQueueDepth() uint32 { + if x != nil { + return x.TcpQueueDepth + } + return 0 +} + +func (x *XtcpConfig) GetTcpMaxBufferedBytes() uint64 { + if x != nil { + return x.TcpMaxBufferedBytes + } + return 0 +} + func (x *XtcpConfig) GetHostname() string { if x != nil { return x.Hostname @@ -2798,7 +2831,7 @@ const file_xtcp_config_v1_xtcp_config_proto_rawDesc = "" + "\x0e_error_classesB\x15\n" + "\x13_metrics_categoriesB\x1a\n" + "\x18_metrics_interface_pathsB\x13\n" + - "\x11_metrics_all_path\"\xad-\n" + + "\x11_metrics_all_path\"\xfa.\n" + "\n" + "XtcpConfig\x12F\n" + "\x17nl_timeout_milliseconds\x18\n" + @@ -2884,7 +2917,10 @@ const file_xtcp_config_v1_xtcp_config_proto_rawDesc = "" + "\x15s3_max_buffered_bytes\x18u \x01(\x04B\x06\xbaH\x03\xc8\x01\x00R\x12s3MaxBufferedBytes\x12G\n" + "\fs3_spill_dir\x18v \x01(\tB%\xbaH\"\xc8\x01\x00r\x1d\x18\x80 2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$R\n" + "s3SpillDir\x123\n" + - "\x12s3_spill_max_bytes\x18w \x01(\x04B\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12B\n" + + "\x12s3_spill_max_bytes\x18w \x01(\x04B\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12Y\n" + + "\x11tcp_write_timeout\x18x \x01(\v2\x19.google.protobuf.DurationB\x12\xbaH\x0f\xc8\x01\x00\xaa\x01\t\"\x03\b\x90\x1c2\x02\b\x01R\x0ftcpWriteTimeout\x123\n" + + "\x0ftcp_queue_depth\x18y \x01(\rB\v\xbaH\b\xc8\x01\x00*\x03\x18\x80 R\rtcpQueueDepth\x12;\n" + + "\x16tcp_max_buffered_bytes\x18z \x01(\x04B\x06\xbaH\x03\xc8\x01\x00R\x13tcpMaxBufferedBytes\x12B\n" + "\bhostname\x18\x82\x01 \x01(\tB%\xbaH\"\xc8\x01\x00r\x1d\x18\xfd\x012\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$R\bhostname\x12B\n" + "\blocation\x18\x83\x01 \x01(\tB%\xbaH\"\xc8\x01\x00r\x1d\x18\xfd\x012\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$R\blocation\x12;\n" + "\x05label\x18\x84\x01 \x01(\tB$\xbaH!\xc8\x01\x00r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$R\x05label\x127\n" + @@ -3034,34 +3070,35 @@ var file_xtcp_config_v1_xtcp_config_proto_depIdxs = []int32{ 24, // 34: xtcp_config.v1.XtcpConfig.kafka_produce_timeout:type_name -> google.protobuf.Duration 24, // 35: xtcp_config.v1.XtcpConfig.s3_flush_interval:type_name -> google.protobuf.Duration 24, // 36: xtcp_config.v1.XtcpConfig.s3_upload_backoff_cap:type_name -> google.protobuf.Duration - 18, // 37: xtcp_config.v1.XtcpConfig.listener_auth:type_name -> xtcp_config.v1.ListenerAuth - 17, // 38: xtcp_config.v1.XtcpConfig.prometheus_listener:type_name -> xtcp_config.v1.ListenerEndpoint - 18, // 39: xtcp_config.v1.XtcpConfig.admin_listener_auth:type_name -> xtcp_config.v1.ListenerAuth - 17, // 40: xtcp_config.v1.XtcpConfig.grpc_listener:type_name -> xtcp_config.v1.ListenerEndpoint - 19, // 41: xtcp_config.v1.XtcpConfig.listeners:type_name -> xtcp_config.v1.Listener - 24, // 42: xtcp_config.v1.XtcpConfig.asn_refresh_interval:type_name -> google.protobuf.Duration - 24, // 43: xtcp_config.v1.XtcpConfig.locality_refresh_interval:type_name -> google.protobuf.Duration - 20, // 44: xtcp_config.v1.XtcpConfig.link_monitor:type_name -> xtcp_config.v1.LinkMonitorConfig - 23, // 45: xtcp_config.v1.EnabledDeserializers.enabled:type_name -> xtcp_config.v1.EnabledDeserializers.EnabledEntry - 3, // 46: xtcp_config.v1.ConfigService.Get:input_type -> xtcp_config.v1.GetRequest - 5, // 47: xtcp_config.v1.ConfigService.Set:input_type -> xtcp_config.v1.SetRequest - 7, // 48: xtcp_config.v1.ConfigService.SetPollFrequency:input_type -> xtcp_config.v1.SetPollFrequencyRequest - 9, // 49: xtcp_config.v1.ConfigService.TriggerPoll:input_type -> xtcp_config.v1.TriggerPollRequest - 11, // 50: xtcp_config.v1.ConfigService.TriggerPollBurst:input_type -> xtcp_config.v1.TriggerPollBurstRequest - 13, // 51: xtcp_config.v1.ConfigService.SetS3Upload:input_type -> xtcp_config.v1.SetS3UploadRequest - 15, // 52: xtcp_config.v1.ConfigService.SetEnvelopeFlush:input_type -> xtcp_config.v1.SetEnvelopeFlushRequest - 4, // 53: xtcp_config.v1.ConfigService.Get:output_type -> xtcp_config.v1.GetResponse - 6, // 54: xtcp_config.v1.ConfigService.Set:output_type -> xtcp_config.v1.SetResponse - 8, // 55: xtcp_config.v1.ConfigService.SetPollFrequency:output_type -> xtcp_config.v1.SetPollFrequencyResponse - 10, // 56: xtcp_config.v1.ConfigService.TriggerPoll:output_type -> xtcp_config.v1.TriggerPollResponse - 12, // 57: xtcp_config.v1.ConfigService.TriggerPollBurst:output_type -> xtcp_config.v1.TriggerPollBurstResponse - 14, // 58: xtcp_config.v1.ConfigService.SetS3Upload:output_type -> xtcp_config.v1.SetS3UploadResponse - 16, // 59: xtcp_config.v1.ConfigService.SetEnvelopeFlush:output_type -> xtcp_config.v1.SetEnvelopeFlushResponse - 53, // [53:60] is the sub-list for method output_type - 46, // [46:53] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name + 24, // 37: xtcp_config.v1.XtcpConfig.tcp_write_timeout:type_name -> google.protobuf.Duration + 18, // 38: xtcp_config.v1.XtcpConfig.listener_auth:type_name -> xtcp_config.v1.ListenerAuth + 17, // 39: xtcp_config.v1.XtcpConfig.prometheus_listener:type_name -> xtcp_config.v1.ListenerEndpoint + 18, // 40: xtcp_config.v1.XtcpConfig.admin_listener_auth:type_name -> xtcp_config.v1.ListenerAuth + 17, // 41: xtcp_config.v1.XtcpConfig.grpc_listener:type_name -> xtcp_config.v1.ListenerEndpoint + 19, // 42: xtcp_config.v1.XtcpConfig.listeners:type_name -> xtcp_config.v1.Listener + 24, // 43: xtcp_config.v1.XtcpConfig.asn_refresh_interval:type_name -> google.protobuf.Duration + 24, // 44: xtcp_config.v1.XtcpConfig.locality_refresh_interval:type_name -> google.protobuf.Duration + 20, // 45: xtcp_config.v1.XtcpConfig.link_monitor:type_name -> xtcp_config.v1.LinkMonitorConfig + 23, // 46: xtcp_config.v1.EnabledDeserializers.enabled:type_name -> xtcp_config.v1.EnabledDeserializers.EnabledEntry + 3, // 47: xtcp_config.v1.ConfigService.Get:input_type -> xtcp_config.v1.GetRequest + 5, // 48: xtcp_config.v1.ConfigService.Set:input_type -> xtcp_config.v1.SetRequest + 7, // 49: xtcp_config.v1.ConfigService.SetPollFrequency:input_type -> xtcp_config.v1.SetPollFrequencyRequest + 9, // 50: xtcp_config.v1.ConfigService.TriggerPoll:input_type -> xtcp_config.v1.TriggerPollRequest + 11, // 51: xtcp_config.v1.ConfigService.TriggerPollBurst:input_type -> xtcp_config.v1.TriggerPollBurstRequest + 13, // 52: xtcp_config.v1.ConfigService.SetS3Upload:input_type -> xtcp_config.v1.SetS3UploadRequest + 15, // 53: xtcp_config.v1.ConfigService.SetEnvelopeFlush:input_type -> xtcp_config.v1.SetEnvelopeFlushRequest + 4, // 54: xtcp_config.v1.ConfigService.Get:output_type -> xtcp_config.v1.GetResponse + 6, // 55: xtcp_config.v1.ConfigService.Set:output_type -> xtcp_config.v1.SetResponse + 8, // 56: xtcp_config.v1.ConfigService.SetPollFrequency:output_type -> xtcp_config.v1.SetPollFrequencyResponse + 10, // 57: xtcp_config.v1.ConfigService.TriggerPoll:output_type -> xtcp_config.v1.TriggerPollResponse + 12, // 58: xtcp_config.v1.ConfigService.TriggerPollBurst:output_type -> xtcp_config.v1.TriggerPollBurstResponse + 14, // 59: xtcp_config.v1.ConfigService.SetS3Upload:output_type -> xtcp_config.v1.SetS3UploadResponse + 16, // 60: xtcp_config.v1.ConfigService.SetEnvelopeFlush:output_type -> xtcp_config.v1.SetEnvelopeFlushResponse + 54, // [54:61] is the sub-list for method output_type + 47, // [47:54] is the sub-list for method input_type + 47, // [47:47] is the sub-list for extension type_name + 47, // [47:47] is the sub-list for extension extendee + 0, // [0:47] is the sub-list for field type_name } func init() { file_xtcp_config_v1_xtcp_config_proto_init() } diff --git a/gen/go/xtcp_config/xtcp_config_vtproto.pb.go b/gen/go/xtcp_config/xtcp_config_vtproto.pb.go index ea0c0229a..88e19517e 100644 --- a/gen/go/xtcp_config/xtcp_config_vtproto.pb.go +++ b/gen/go/xtcp_config/xtcp_config_vtproto.pb.go @@ -1577,6 +1577,32 @@ func (m *XtcpConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x92 } + if m.TcpMaxBufferedBytes != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TcpMaxBufferedBytes)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xd0 + } + if m.TcpQueueDepth != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TcpQueueDepth)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc8 + } + if m.TcpWriteTimeout != nil { + size, err := (*durationpb.Duration)(m.TcpWriteTimeout).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc2 + } if m.S3SpillMaxBytes != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.S3SpillMaxBytes)) i-- @@ -2773,6 +2799,16 @@ func (m *XtcpConfig) SizeVT() (n int) { if m.S3SpillMaxBytes != 0 { n += 2 + protohelpers.SizeOfVarint(uint64(m.S3SpillMaxBytes)) } + if m.TcpWriteTimeout != nil { + l = (*durationpb.Duration)(m.TcpWriteTimeout).SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TcpQueueDepth != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.TcpQueueDepth)) + } + if m.TcpMaxBufferedBytes != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.TcpMaxBufferedBytes)) + } l = len(m.Hostname) if l > 0 { n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -7330,6 +7366,80 @@ func (m *XtcpConfig) UnmarshalVT(dAtA []byte) error { break } } + case 120: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpWriteTimeout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TcpWriteTimeout == nil { + m.TcpWriteTimeout = &durationpb1.Duration{} + } + if err := (*durationpb.Duration)(m.TcpWriteTimeout).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 121: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpQueueDepth", wireType) + } + m.TcpQueueDepth = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TcpQueueDepth |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 122: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpMaxBufferedBytes", wireType) + } + m.TcpMaxBufferedBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TcpMaxBufferedBytes |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } case 130: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) diff --git a/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json b/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json index a565dd080..38d8e4934 100644 --- a/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json +++ b/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json @@ -930,6 +930,20 @@ "format": "uint64", "description": "Bytes the spill directory may hold. Past this the oldest spilled\nobject is deleted (xtcp_s3_spill_total{result=\"evicted\"}). 0 = 1 GiB." }, + "tcpWriteTimeout": { + "type": "string", + "description": "Deadline on a single tcp-destination write (and dial), bounding a wedged\nroute to the timeout instead of the TCP retransmit window (~15.4 min at\nthe prod-default tcp_retries2=15). 0 = 30s." + }, + "tcpQueueDepth": { + "type": "integer", + "format": "int64", + "description": "Envelopes queued between the poller and the tcp worker. Past this depth\nthe oldest is dropped (xtcp_tcp_dropped_total{reason=\"queue_depth\"}), so\na wedged sink never blocks polling. 0 = 16." + }, + "tcpMaxBufferedBytes": { + "type": "string", + "format": "uint64", + "description": "Marshaled envelope bytes the tcp queue may hold. Past this the oldest\nenvelope is dropped (reason=\"buffered_bytes\"); the newest is always\nkept. 0 = no byte bound (the depth bound alone)." + }, "hostname": { "type": "string", "description": "Hostname override. When empty the daemon uses os.Hostname(); set this to\nstamp an explicit hostname on records — required in containers, where\nos.Hostname() returns the container id, not the host. Set via -hostname\nflag or XTCP_HOSTNAME env (NOT HOSTNAME, which Docker sets to the\ncontainer id)." diff --git a/gen/python/xtcp_config/v1/xtcp_config_pb2.py b/gen/python/xtcp_config/v1/xtcp_config_pb2.py index 475a766b8..09f2c9a38 100644 --- a/gen/python/xtcp_config/v1/xtcp_config_pb2.py +++ b/gen/python/xtcp_config/v1/xtcp_config_pb2.py @@ -28,7 +28,7 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n xtcp_config/v1/xtcp_config.proto\x12\x0extcp_config.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cxtcp_auth/v1/xtcp_auth.proto\x1a\x1b\x62uf/validate/validate.proto\"\x0c\n\nGetRequest\"A\n\x0bGetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"@\n\nSetRequest\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"A\n\x0bSetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xb6\x02\n\x17SetPollFrequencyRequest\x12U\n\x0epoll_frequency\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x1e \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00\xc8\x01\x01R\x0bpollTimeout:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_timeout < this.poll_frequency\"N\n\x18SetPollFrequencyResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x14\n\x12TriggerPollRequest\"\x15\n\x13TriggerPollResponse\"\x89\x01\n\x17TriggerPollBurstRequest\x12#\n\x05\x63ount\x18\n \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x05\x63ount\x12I\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x01R\x08interval\"g\n\x18TriggerPollBurstResponse\x12\x14\n\x05\x63ount\x18\n \x01(\rR\x05\x63ount\x12\x35\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\"\xe3\x02\n\x12SetS3UploadRequest\x12R\n\x11s3_flush_interval\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12N\n s3_parquet_flush_threshold_bytes\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes:\xa8\x01\xbaH\xa4\x01\x1a\xa1\x01\n\x16SetS3Upload.atLeastOne\x12=set s3_flush_interval and/or s3_parquet_flush_threshold_bytes\x1aHhas(this.s3_flush_interval) || this.s3_parquet_flush_threshold_bytes > 0\"I\n\x13SetS3UploadResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xf4\x02\n\x17SetEnvelopeFlushRequest\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18\n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows:\xc0\x01\xbaH\xbc\x01\x1a\xb9\x01\n\x1bSetEnvelopeFlush.atLeastOne\x12Gset envelope_flush_threshold_bytes and/or envelope_flush_threshold_rows\x1aQthis.envelope_flush_threshold_bytes > 0 || this.envelope_flush_threshold_rows > 0\"N\n\x18SetEnvelopeFlushResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x8a\x03\n\x10ListenerEndpoint\x12\x43\n\x07network\x18\x01 \x01(\x0e\x32\x1f.xtcp_config.v1.ListenerNetworkB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07network\x12\"\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x04R\x07\x61\x64\x64ress\x12\x32\n\x10unix_socket_mode\x18\x03 \x01(\rB\x08\xbaH\x05*\x03\x18\xff\x03R\x0eunixSocketMode\x12\x37\n\x18unlink_stale_unix_socket\x18\x04 \x01(\x08R\x15unlinkStaleUnixSocket\x12\x32\n\x0fmax_connections\x18\x05 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0emaxConnections\x12>\n\x16\x61\x63\x63\x65pt_rate_per_second\x18\x06 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x13\x61\x63\x63\x65ptRatePerSecond\x12,\n\x0c\x61\x63\x63\x65pt_burst\x18\x07 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0b\x61\x63\x63\x65ptBurst\"\x83\x06\n\x0cListenerAuth\x12>\n\x04mode\x18\x01 \x01(\x0e\x32 .xtcp_config.v1.ListenerAuthModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04mode\x12%\n\traw_token\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x08rawToken\x12\x30\n\x0fhmac_shared_key\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rhmacSharedKey\x12G\n\x19signed_token_skew_minutes\x18\x04 \x01(\rB\x07\xbaH\x04*\x02\x18\x05H\x00R\x16signedTokenSkewMinutes\x88\x01\x01\x12Q\n\x12\x66\x61ilure_jitter_min\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMin\x12Q\n\x12\x66\x61ilure_jitter_max\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMax\x12.\n\x0eraw_token_file\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0crawTokenFile\x12\x39\n\x14hmac_shared_key_file\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x11hmacSharedKeyFile:\xe1\x01\xbaH\xdd\x01\x1a\xda\x01\n\x1aListenerAuth.failureJitter\x12\x46\x66\x61ilure_jitter_max must be greater than or equal to failure_jitter_min\x1at!has(this.failure_jitter_min) || !has(this.failure_jitter_max) || this.failure_jitter_max >= this.failure_jitter_minB\x1c\n\x1a_signed_token_skew_minutes\"\xbf\x02\n\x08Listener\x12\x30\n\x04name\x18\x01 \x01(\tB\x1c\xbaH\x19r\x17\x10\x01\x18 2\x11^[a-z][a-z0-9-]*$R\x04name\x12\x44\n\x08\x65ndpoint\x18\x02 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x01R\x08\x65ndpoint\x12\x30\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\x04\x61uth\x12;\n\nadmin_auth\x18\x04 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\tadminAuth\x12L\n\x06serves\x18\x05 \x03(\x0e\x32\x1d.xtcp_config.v1.EndpointClassB\x15\xbaH\x12\x92\x01\x0f\x08\x01\x10\x07\x18\x01\"\x07\x82\x01\x04\x10\x01 \x00R\x06serves\"\x9a\x0e\n\x11LinkMonitorConfig\x12\x16\n\x06\x65nable\x18\x01 \x01(\x08R\x06\x65nable\x12-\n\rbaseline_file\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x62\x61selineFile\x12\x41\n\x06settle\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x06settle\x12\x41\n\x06resync\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00R\x06resync\x12P\n\x0estats_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rstatsInterval\x12-\n\rstats_include\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsInclude\x12-\n\rstats_exclude\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsExclude\x12/\n\x0enetstat_fields\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rnetstatFields\x12\x44\n\x14max_speed_exceptions\x18\t \x03(\tB\x12\xbaH\x0f\x92\x01\x0c\x10\x80\x02\"\x07r\x05\x10\x01\x18\x80\x01R\x12maxSpeedExceptions\x12:\n\x14metrics_core_include\x18\n \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreInclude\x12:\n\x14metrics_core_exclude\x18\x0b \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreExclude\x12\x1f\n\x0bmetrics_all\x18\x0c \x01(\x08R\nmetricsAll\x12\x41\n\x0f\x63ollection_mode\x18\r \x01(\tB\x18\xbaH\x15r\x13R\x00R\x04pollR\ton-demandR\x0e\x63ollectionMode\x12P\n\x0ewatch_interval\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rwatchInterval\x12N\n\rslow_interval\x18\x0f \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\x0cslowInterval\x12M\n\ron_demand_ttl\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x0bonDemandTtl\x12M\n\x0eon_demand_wait\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\xbaH\t\xaa\x01\x06\x1a\x02\x08\n*\x00R\x0conDemandWait\x12L\n\x0c\x65rror_window\x18\x12 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\x0b\x65rrorWindow\x12J\n\x0b\x66lap_window\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\nflapWindow\x12\\\n\rerror_classes\x18\x14 \x01(\tB2\xbaH/r-\x18@2)^((link|rdma|drop)(,(link|rdma|drop))*)?$H\x00R\x0c\x65rrorClasses\x88\x01\x01\x12-\n\rerror_exclude\x18\x15 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x65rrorExclude\x12<\n\x12metrics_categories\x18\x16 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x01R\x11metricsCategories\x88\x01\x01\x12;\n\x17metrics_interface_paths\x18\x17 \x01(\x08H\x02R\x15metricsInterfacePaths\x88\x01\x01\x12\x37\n\x10metrics_all_path\x18\x18 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x03R\x0emetricsAllPath\x88\x01\x01\x12\x19\n\x08ip_paths\x18\x19 \x01(\x08R\x07ipPaths\x12-\n\x0cip_max_bytes\x18\x1a \x01(\rB\x0b\xbaH\x08*\x06\x18\x80\x80\x80\x80\x04R\nipMaxBytes\x12$\n\tip_listen\x18\x1b \x01(\tB\x07\xbaH\x04r\x02\x18@R\x08ipListen\x12P\n\x0elearn_deadline\x18\x1c \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\rlearnDeadlineB\x10\n\x0e_error_classesB\x15\n\x13_metrics_categoriesB\x1a\n\x18_metrics_interface_pathsB\x13\n\x11_metrics_all_path\"\xad-\n\nXtcpConfig\x12\x46\n\x17nl_timeout_milliseconds\x18\n \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x01R\x15nlTimeoutMilliseconds\x12U\n\x0epoll_frequency\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00\xc8\x01\x01R\x0bpollTimeout\x12\x32\n\x0fpoll_jitter_pct\x18\r \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\rpollJitterPct\x12+\n\tmax_loops\x18\x0e \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x00R\x08maxLoops\x12,\n\nnetlinkers\x18\x0f \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x01R\nnetlinkers\x12H\n\x19netlinkers_done_chan_size\x18\x10 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x16netlinkersDoneChanSize\x12*\n\tnlmsg_seq\x18\x11 \x01(\rB\r\xbaH\n*\x05\x18\x90N(\x00\xc8\x01\x01R\x08nlmsgSeq\x12/\n\x0bpacket_size\x18\x12 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x00\xc8\x01\x00R\npacketSize\x12\x36\n\x10packet_size_mply\x18\x13 \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x00\xc8\x01\x00R\x0epacketSizeMply\x12(\n\x07modulus\x18\x14 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x01\xc8\x01\x01R\x07modulus\x12\x61\n\x15\x65nabled_deserializers\x18\x15 \x01(\x0b\x32$.xtcp_config.v1.EnabledDeserializersB\x06\xbaH\x03\xc8\x01\x00R\x14\x65nabledDeserializers\x12!\n\x08io_uring\x18\x16 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x07ioUring\x12\x45\n\x18io_uring_recv_batch_size\x18\x17 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x14ioUringRecvBatchSize\x12\x43\n\x17io_uring_cqe_batch_size\x18\x18 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x13ioUringCqeBatchSize\x12,\n\x0emax_dump_bytes\x18\x19 \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0cmaxDumpBytes\x12\x39\n\x15max_records_per_netns\x18\x1a \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12maxRecordsPerNetns\x12\x37\n\x14max_records_per_poll\x18\x1b \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x11maxRecordsPerPoll\x12K\n\x1cio_uring_sockstat_batch_size\x18\x1c \x01(\rB\x0b\xbaH\x08*\x03\x18\x80\x08\xc8\x01\x00R\x18ioUringSockstatBatchSize\x12\x45\n\x19io_uring_sockstat_workers\x18\x1d \x01(\rB\n\xbaH\x07*\x02\x18@\xc8\x01\x00R\x16ioUringSockstatWorkers\x12W\n\x13reconcile_frequency\x18( \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12reconcileFrequency\x12\x32\n\x15reconcile_before_poll\x18) \x01(\x08R\x13reconcileBeforePoll\x12#\n\tmax_netns\x18* \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x08maxNetns\x12S\n\x11reconcile_timeout\x18+ \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x10reconcileTimeout\x12\x35\n\x13max_netns_per_owner\x18, \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x10maxNetnsPerOwner\x12\x46\n\x1cmax_netns_adds_per_reconcile\x18- \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18maxNetnsAddsPerReconcile\x12.\n\x0bwrite_files\x18\x32 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\nwriteFiles\x12/\n\x0c\x63\x61pture_path\x18\x33 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\x0b\x63\x61pturePath\x12\x37\n\x10\x64\x65st_write_files\x18\x34 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\x0e\x64\x65stWriteFiles\x12.\n\x0b\x64\x65\x62ug_level\x18\x35 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x01R\ndebugLevel\x12\x31\n\x10\x64\x65\x62ug_prometheus\x18\x36 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0f\x64\x65\x62ugPrometheus\x12!\n\x04\x64\x65st\x18< \x01(\tB\r\xbaH\nr\x05\x10\x04\x18\x80\x04\xc8\x01\x01R\x04\x64\x65st\x12+\n\nmarshal_to\x18= \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18(\xc8\x01\x01R\tmarshalTo\x12\'\n\x0b\x63sv_columns\x18> \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ncsvColumns\x12\x34\n\x0fxtcp_proto_file\x18? \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\rxtcpProtoFile\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18@ \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x41 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows\x12\"\n\x05topic\x18P \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18(\xc8\x01\x00R\x05topic\x12\x36\n\x10kafka_schema_url\x18Q \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x00R\x0ekafkaSchemaUrl\x12_\n\x15kafka_produce_timeout\x18R \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xbaH\r\xaa\x01\x07\"\x03\x08\xd8\x04\x32\x00\xc8\x01\x00R\x13kafkaProduceTimeout\x12\x33\n\x11kafka_compression\x18S \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10kafkaCompression\x12\'\n\x0bs3_endpoint\x18\x64 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ns3Endpoint\x12#\n\ts3_region\x18\x65 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Region\x12#\n\ts3_bucket\x18\x66 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Bucket\x12#\n\ts3_prefix\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Prefix\x12*\n\rs3_access_key\x18h \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3AccessKey\x12*\n\rs3_secret_key\x18i \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3SecretKey\x12\x37\n\x14s3_skip_bucket_probe\x18j \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x11s3SkipBucketProbe\x12\x32\n\x11s3_allow_insecure\x18k \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3AllowInsecure\x12)\n\ns3_ca_file\x18l \x01(\tB\x0b\xbaH\x08r\x03\x18\x80 \xc8\x01\x00R\x08s3CaFile\x12N\n s3_parquet_flush_threshold_bytes\x18n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes\x12R\n\x11s3_flush_interval\x18o \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12\x39\n\x13s3_flush_jitter_pct\x18p \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x10s3FlushJitterPct\x12L\n\x1ds3_flush_threshold_jitter_pct\x18q \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x19s3FlushThresholdJitterPct\x12\x41\n\x16s3_upload_max_attempts\x18r \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x00R\x13s3UploadMaxAttempts\x12Y\n\x15s3_upload_backoff_cap\x18s \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12s3UploadBackoffCap\x12\x31\n\x0es3_queue_depth\x18t \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\x0cs3QueueDepth\x12\x39\n\x15s3_max_buffered_bytes\x18u \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12s3MaxBufferedBytes\x12G\n\x0cs3_spill_dir\x18v \x01(\tB%\xbaH\"r\x1d\x18\x80 2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\ns3SpillDir\x12\x33\n\x12s3_spill_max_bytes\x18w \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12\x42\n\x08hostname\x18\x82\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08hostname\x12\x42\n\x08location\x18\x83\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08location\x12;\n\x05label\x18\x84\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x05label\x12\x37\n\x03tag\x18\x85\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x03tag\x12\x33\n\x0e\x64\x61\x65mon_version\x18\x86\x01 \x01(\tB\x0b\xbaH\x08r\x03\x18\xfd\x01\xc8\x01\x00R\rdaemonVersion\x12\'\n\x08ipv4_ttl\x18\x96\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x07ipv4Ttl\x12\x32\n\x0eipv6_hop_limit\x18\x97\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x0cipv6HopLimit\x12J\n\rlistener_auth\x18\x98\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x0clistenerAuth\x12Z\n\x13prometheus_listener\x18\x99\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x12prometheusListener\x12U\n\x13\x61\x64min_listener_auth\x18\x9a\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x11\x61\x64minListenerAuth\x12\'\n\tgrpc_port\x18\xa0\x01 \x01(\rB\t\xbaH\x06*\x04\x18\xff\xff\x03R\x08grpcPort\x12N\n\rgrpc_listener\x18\xa1\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x0cgrpcListener\x12\x41\n\tlisteners\x18\xa2\x01 \x03(\x0b\x32\x18.xtcp_config.v1.ListenerB\x08\xbaH\x05\x92\x01\x02\x10\x10R\tlisteners\x12,\n\rpyroscope_url\x18\xaa\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0cpyroscopeUrl\x12\x35\n\x12pyroscope_app_name\x18\xab\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10pyroscopeAppName\x12\x37\n\x13pyroscope_sample_hz\x18\xac\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x11pyroscopeSampleHz\x12J\n\x1dpyroscope_upload_interval_sec\x18\xad\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1apyroscopeUploadIntervalSec\x12\x39\n\x14resolve_container_id\x18\xc8\x01 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x12resolveContainerId\x12\x37\n\x17\x65nrich_container_enable\x18\xc9\x01 \x01(\x08R\x15\x65nrichContainerEnable\x12\x37\n\x12\x64ocker_socket_path\x18\xca\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x10\x64ockerSocketPath\x12-\n\x12\x65nrich_lldp_enable\x18\xd2\x01 \x01(\x08R\x10\x65nrichLldpEnable\x12\x35\n\x11lldpd_socket_path\x18\xd3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0flldpdSocketPath\x12\x36\n\x12lldpd_version_hint\x18\xd4\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x10R\x10lldpdVersionHint\x12+\n\x11\x65nrich_nic_enable\x18\xdc\x01 \x01(\x08R\x0f\x65nrichNicEnable\x12+\n\x0cuplink_count\x18\xdd\x01 \x01(\rB\x07\xbaH\x04*\x02\x18\x02R\x0buplinkCount\x12\x36\n\x11uplink_interfaces\x18\xde\x01 \x03(\tB\x08\xbaH\x05\x92\x01\x02\x10\x02R\x10uplinkInterfaces\x12$\n\rpopulate_nsid\x18\xe6\x01 \x01(\x08R\x0cpopulateNsid\x12+\n\x11\x65nrich_asn_enable\x18\xf0\x01 \x01(\x08R\x0f\x65nrichAsnEnable\x12)\n\x0b\x61sn_db_path\x18\xf1\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\tasnDbPath\x12L\n\x14\x61sn_refresh_interval\x18\xf2\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x12\x61snRefreshInterval\x12=\n\x15ipmeta_bootstrap_path\x18\xf3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x13ipmetaBootstrapPath\x12\x35\n\x11ipmeta_cache_path\x18\xf4\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0fipmetaCachePath\x12\x35\n\x16\x65nrich_locality_enable\x18\xf5\x01 \x01(\x08R\x14\x65nrichLocalityEnable\x12V\n\x19locality_refresh_interval\x18\xf6\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x17localityRefreshInterval\x12\x35\n\x16locality_events_enable\x18\xf7\x01 \x01(\x08R\x14localityEventsEnable\x12\x45\n\x0clink_monitor\x18\xfa\x01 \x01(\x0b\x32!.xtcp_config.v1.LinkMonitorConfigR\x0blinkMonitor:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_frequency > this.poll_timeout\"\x9f\x01\n\x14\x45nabledDeserializers\x12K\n\x07\x65nabled\x18\x01 \x03(\x0b\x32\x31.xtcp_config.v1.EnabledDeserializers.EnabledEntryR\x07\x65nabled\x1a:\n\x0c\x45nabledEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01*h\n\x0fListenerNetwork\x12 \n\x1cLISTENER_NETWORK_UNSPECIFIED\x10\x00\x12\x18\n\x14LISTENER_NETWORK_TCP\x10\x01\x12\x19\n\x15LISTENER_NETWORK_UNIX\x10\x02*\xa1\x01\n\x10ListenerAuthMode\x12\"\n\x1eLISTENER_AUTH_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bLISTENER_AUTH_MODE_DISABLED\x10\x01\x12 \n\x1cLISTENER_AUTH_MODE_RAW_TOKEN\x10\x02\x12&\n\"LISTENER_AUTH_MODE_HMAC_UTC_MINUTE\x10\x03*\xf7\x01\n\rEndpointClass\x12\x1e\n\x1a\x45NDPOINT_CLASS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45NDPOINT_CLASS_HEALTH\x10\x01\x12\x1a\n\x16\x45NDPOINT_CLASS_METRICS\x10\x02\x12!\n\x1d\x45NDPOINT_CLASS_METRICS_DETAIL\x10\x03\x12\x15\n\x11\x45NDPOINT_CLASS_IP\x10\x04\x12\x18\n\x14\x45NDPOINT_CLASS_DEBUG\x10\x05\x12\x1c\n\x18\x45NDPOINT_CLASS_GRPC_READ\x10\x06\x12\x1d\n\x19\x45NDPOINT_CLASS_GRPC_ADMIN\x10\x07\x32\xa5\x07\n\rConfigService\x12\x61\n\x03Get\x12\x1a.xtcp_config.v1.GetRequest\x1a\x1b.xtcp_config.v1.GetResponse\"!\xc8\xf3\x18\x01\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Get:\x01*\x12\x61\n\x03Set\x12\x1a.xtcp_config.v1.SetRequest\x1a\x1b.xtcp_config.v1.SetResponse\"!\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Set:\x01*\x12\x95\x01\n\x10SetPollFrequency\x12\'.xtcp_config.v1.SetPollFrequencyRequest\x1a(.xtcp_config.v1.SetPollFrequencyResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetPollFrequency:\x01*\x12\x81\x01\n\x0bTriggerPoll\x12\".xtcp_config.v1.TriggerPollRequest\x1a#.xtcp_config.v1.TriggerPollResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/TriggerPoll:\x01*\x12\x95\x01\n\x10TriggerPollBurst\x12\'.xtcp_config.v1.TriggerPollBurstRequest\x1a(.xtcp_config.v1.TriggerPollBurstResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/TriggerPollBurst:\x01*\x12\x81\x01\n\x0bSetS3Upload\x12\".xtcp_config.v1.SetS3UploadRequest\x1a#.xtcp_config.v1.SetS3UploadResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/SetS3Upload:\x01*\x12\x95\x01\n\x10SetEnvelopeFlush\x12\'.xtcp_config.v1.SetEnvelopeFlushRequest\x1a(.xtcp_config.v1.SetEnvelopeFlushResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetEnvelopeFlush:\x01*B\xaf\x01\n\x12\x63om.xtcp_config.v1B\x0fXtcpConfigProtoP\x01Z3github.com/randomizedcoder/xtcp2/gen/go/xtcp_config\xa2\x02\x03XXX\xaa\x02\rXtcpConfig.V1\xca\x02\rXtcpConfig\\V1\xe2\x02\x19XtcpConfig\\V1\\GPBMetadata\xea\x02\x0eXtcpConfig::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n xtcp_config/v1/xtcp_config.proto\x12\x0extcp_config.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cxtcp_auth/v1/xtcp_auth.proto\x1a\x1b\x62uf/validate/validate.proto\"\x0c\n\nGetRequest\"A\n\x0bGetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"@\n\nSetRequest\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"A\n\x0bSetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xb6\x02\n\x17SetPollFrequencyRequest\x12U\n\x0epoll_frequency\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x1e \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00\xc8\x01\x01R\x0bpollTimeout:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_timeout < this.poll_frequency\"N\n\x18SetPollFrequencyResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x14\n\x12TriggerPollRequest\"\x15\n\x13TriggerPollResponse\"\x89\x01\n\x17TriggerPollBurstRequest\x12#\n\x05\x63ount\x18\n \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x05\x63ount\x12I\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x01R\x08interval\"g\n\x18TriggerPollBurstResponse\x12\x14\n\x05\x63ount\x18\n \x01(\rR\x05\x63ount\x12\x35\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\"\xe3\x02\n\x12SetS3UploadRequest\x12R\n\x11s3_flush_interval\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12N\n s3_parquet_flush_threshold_bytes\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes:\xa8\x01\xbaH\xa4\x01\x1a\xa1\x01\n\x16SetS3Upload.atLeastOne\x12=set s3_flush_interval and/or s3_parquet_flush_threshold_bytes\x1aHhas(this.s3_flush_interval) || this.s3_parquet_flush_threshold_bytes > 0\"I\n\x13SetS3UploadResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xf4\x02\n\x17SetEnvelopeFlushRequest\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18\n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows:\xc0\x01\xbaH\xbc\x01\x1a\xb9\x01\n\x1bSetEnvelopeFlush.atLeastOne\x12Gset envelope_flush_threshold_bytes and/or envelope_flush_threshold_rows\x1aQthis.envelope_flush_threshold_bytes > 0 || this.envelope_flush_threshold_rows > 0\"N\n\x18SetEnvelopeFlushResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x8a\x03\n\x10ListenerEndpoint\x12\x43\n\x07network\x18\x01 \x01(\x0e\x32\x1f.xtcp_config.v1.ListenerNetworkB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07network\x12\"\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x04R\x07\x61\x64\x64ress\x12\x32\n\x10unix_socket_mode\x18\x03 \x01(\rB\x08\xbaH\x05*\x03\x18\xff\x03R\x0eunixSocketMode\x12\x37\n\x18unlink_stale_unix_socket\x18\x04 \x01(\x08R\x15unlinkStaleUnixSocket\x12\x32\n\x0fmax_connections\x18\x05 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0emaxConnections\x12>\n\x16\x61\x63\x63\x65pt_rate_per_second\x18\x06 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x13\x61\x63\x63\x65ptRatePerSecond\x12,\n\x0c\x61\x63\x63\x65pt_burst\x18\x07 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0b\x61\x63\x63\x65ptBurst\"\x83\x06\n\x0cListenerAuth\x12>\n\x04mode\x18\x01 \x01(\x0e\x32 .xtcp_config.v1.ListenerAuthModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04mode\x12%\n\traw_token\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x08rawToken\x12\x30\n\x0fhmac_shared_key\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rhmacSharedKey\x12G\n\x19signed_token_skew_minutes\x18\x04 \x01(\rB\x07\xbaH\x04*\x02\x18\x05H\x00R\x16signedTokenSkewMinutes\x88\x01\x01\x12Q\n\x12\x66\x61ilure_jitter_min\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMin\x12Q\n\x12\x66\x61ilure_jitter_max\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMax\x12.\n\x0eraw_token_file\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0crawTokenFile\x12\x39\n\x14hmac_shared_key_file\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x11hmacSharedKeyFile:\xe1\x01\xbaH\xdd\x01\x1a\xda\x01\n\x1aListenerAuth.failureJitter\x12\x46\x66\x61ilure_jitter_max must be greater than or equal to failure_jitter_min\x1at!has(this.failure_jitter_min) || !has(this.failure_jitter_max) || this.failure_jitter_max >= this.failure_jitter_minB\x1c\n\x1a_signed_token_skew_minutes\"\xbf\x02\n\x08Listener\x12\x30\n\x04name\x18\x01 \x01(\tB\x1c\xbaH\x19r\x17\x10\x01\x18 2\x11^[a-z][a-z0-9-]*$R\x04name\x12\x44\n\x08\x65ndpoint\x18\x02 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x01R\x08\x65ndpoint\x12\x30\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\x04\x61uth\x12;\n\nadmin_auth\x18\x04 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\tadminAuth\x12L\n\x06serves\x18\x05 \x03(\x0e\x32\x1d.xtcp_config.v1.EndpointClassB\x15\xbaH\x12\x92\x01\x0f\x08\x01\x10\x07\x18\x01\"\x07\x82\x01\x04\x10\x01 \x00R\x06serves\"\x9a\x0e\n\x11LinkMonitorConfig\x12\x16\n\x06\x65nable\x18\x01 \x01(\x08R\x06\x65nable\x12-\n\rbaseline_file\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x62\x61selineFile\x12\x41\n\x06settle\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x06settle\x12\x41\n\x06resync\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00R\x06resync\x12P\n\x0estats_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rstatsInterval\x12-\n\rstats_include\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsInclude\x12-\n\rstats_exclude\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsExclude\x12/\n\x0enetstat_fields\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rnetstatFields\x12\x44\n\x14max_speed_exceptions\x18\t \x03(\tB\x12\xbaH\x0f\x92\x01\x0c\x10\x80\x02\"\x07r\x05\x10\x01\x18\x80\x01R\x12maxSpeedExceptions\x12:\n\x14metrics_core_include\x18\n \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreInclude\x12:\n\x14metrics_core_exclude\x18\x0b \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreExclude\x12\x1f\n\x0bmetrics_all\x18\x0c \x01(\x08R\nmetricsAll\x12\x41\n\x0f\x63ollection_mode\x18\r \x01(\tB\x18\xbaH\x15r\x13R\x00R\x04pollR\ton-demandR\x0e\x63ollectionMode\x12P\n\x0ewatch_interval\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rwatchInterval\x12N\n\rslow_interval\x18\x0f \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\x0cslowInterval\x12M\n\ron_demand_ttl\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x0bonDemandTtl\x12M\n\x0eon_demand_wait\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\xbaH\t\xaa\x01\x06\x1a\x02\x08\n*\x00R\x0conDemandWait\x12L\n\x0c\x65rror_window\x18\x12 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\x0b\x65rrorWindow\x12J\n\x0b\x66lap_window\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\nflapWindow\x12\\\n\rerror_classes\x18\x14 \x01(\tB2\xbaH/r-\x18@2)^((link|rdma|drop)(,(link|rdma|drop))*)?$H\x00R\x0c\x65rrorClasses\x88\x01\x01\x12-\n\rerror_exclude\x18\x15 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x65rrorExclude\x12<\n\x12metrics_categories\x18\x16 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x01R\x11metricsCategories\x88\x01\x01\x12;\n\x17metrics_interface_paths\x18\x17 \x01(\x08H\x02R\x15metricsInterfacePaths\x88\x01\x01\x12\x37\n\x10metrics_all_path\x18\x18 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x03R\x0emetricsAllPath\x88\x01\x01\x12\x19\n\x08ip_paths\x18\x19 \x01(\x08R\x07ipPaths\x12-\n\x0cip_max_bytes\x18\x1a \x01(\rB\x0b\xbaH\x08*\x06\x18\x80\x80\x80\x80\x04R\nipMaxBytes\x12$\n\tip_listen\x18\x1b \x01(\tB\x07\xbaH\x04r\x02\x18@R\x08ipListen\x12P\n\x0elearn_deadline\x18\x1c \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\rlearnDeadlineB\x10\n\x0e_error_classesB\x15\n\x13_metrics_categoriesB\x1a\n\x18_metrics_interface_pathsB\x13\n\x11_metrics_all_path\"\xfa.\n\nXtcpConfig\x12\x46\n\x17nl_timeout_milliseconds\x18\n \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x01R\x15nlTimeoutMilliseconds\x12U\n\x0epoll_frequency\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00\xc8\x01\x01R\x0bpollTimeout\x12\x32\n\x0fpoll_jitter_pct\x18\r \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\rpollJitterPct\x12+\n\tmax_loops\x18\x0e \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x00R\x08maxLoops\x12,\n\nnetlinkers\x18\x0f \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x01R\nnetlinkers\x12H\n\x19netlinkers_done_chan_size\x18\x10 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x16netlinkersDoneChanSize\x12*\n\tnlmsg_seq\x18\x11 \x01(\rB\r\xbaH\n*\x05\x18\x90N(\x00\xc8\x01\x01R\x08nlmsgSeq\x12/\n\x0bpacket_size\x18\x12 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x00\xc8\x01\x00R\npacketSize\x12\x36\n\x10packet_size_mply\x18\x13 \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x00\xc8\x01\x00R\x0epacketSizeMply\x12(\n\x07modulus\x18\x14 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x01\xc8\x01\x01R\x07modulus\x12\x61\n\x15\x65nabled_deserializers\x18\x15 \x01(\x0b\x32$.xtcp_config.v1.EnabledDeserializersB\x06\xbaH\x03\xc8\x01\x00R\x14\x65nabledDeserializers\x12!\n\x08io_uring\x18\x16 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x07ioUring\x12\x45\n\x18io_uring_recv_batch_size\x18\x17 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x14ioUringRecvBatchSize\x12\x43\n\x17io_uring_cqe_batch_size\x18\x18 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x13ioUringCqeBatchSize\x12,\n\x0emax_dump_bytes\x18\x19 \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0cmaxDumpBytes\x12\x39\n\x15max_records_per_netns\x18\x1a \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12maxRecordsPerNetns\x12\x37\n\x14max_records_per_poll\x18\x1b \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x11maxRecordsPerPoll\x12K\n\x1cio_uring_sockstat_batch_size\x18\x1c \x01(\rB\x0b\xbaH\x08*\x03\x18\x80\x08\xc8\x01\x00R\x18ioUringSockstatBatchSize\x12\x45\n\x19io_uring_sockstat_workers\x18\x1d \x01(\rB\n\xbaH\x07*\x02\x18@\xc8\x01\x00R\x16ioUringSockstatWorkers\x12W\n\x13reconcile_frequency\x18( \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12reconcileFrequency\x12\x32\n\x15reconcile_before_poll\x18) \x01(\x08R\x13reconcileBeforePoll\x12#\n\tmax_netns\x18* \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x08maxNetns\x12S\n\x11reconcile_timeout\x18+ \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x10reconcileTimeout\x12\x35\n\x13max_netns_per_owner\x18, \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x10maxNetnsPerOwner\x12\x46\n\x1cmax_netns_adds_per_reconcile\x18- \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18maxNetnsAddsPerReconcile\x12.\n\x0bwrite_files\x18\x32 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\nwriteFiles\x12/\n\x0c\x63\x61pture_path\x18\x33 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\x0b\x63\x61pturePath\x12\x37\n\x10\x64\x65st_write_files\x18\x34 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\x0e\x64\x65stWriteFiles\x12.\n\x0b\x64\x65\x62ug_level\x18\x35 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x01R\ndebugLevel\x12\x31\n\x10\x64\x65\x62ug_prometheus\x18\x36 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0f\x64\x65\x62ugPrometheus\x12!\n\x04\x64\x65st\x18< \x01(\tB\r\xbaH\nr\x05\x10\x04\x18\x80\x04\xc8\x01\x01R\x04\x64\x65st\x12+\n\nmarshal_to\x18= \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18(\xc8\x01\x01R\tmarshalTo\x12\'\n\x0b\x63sv_columns\x18> \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ncsvColumns\x12\x34\n\x0fxtcp_proto_file\x18? \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\rxtcpProtoFile\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18@ \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x41 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows\x12\"\n\x05topic\x18P \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18(\xc8\x01\x00R\x05topic\x12\x36\n\x10kafka_schema_url\x18Q \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x00R\x0ekafkaSchemaUrl\x12_\n\x15kafka_produce_timeout\x18R \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xbaH\r\xaa\x01\x07\"\x03\x08\xd8\x04\x32\x00\xc8\x01\x00R\x13kafkaProduceTimeout\x12\x33\n\x11kafka_compression\x18S \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10kafkaCompression\x12\'\n\x0bs3_endpoint\x18\x64 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ns3Endpoint\x12#\n\ts3_region\x18\x65 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Region\x12#\n\ts3_bucket\x18\x66 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Bucket\x12#\n\ts3_prefix\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Prefix\x12*\n\rs3_access_key\x18h \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3AccessKey\x12*\n\rs3_secret_key\x18i \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3SecretKey\x12\x37\n\x14s3_skip_bucket_probe\x18j \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x11s3SkipBucketProbe\x12\x32\n\x11s3_allow_insecure\x18k \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3AllowInsecure\x12)\n\ns3_ca_file\x18l \x01(\tB\x0b\xbaH\x08r\x03\x18\x80 \xc8\x01\x00R\x08s3CaFile\x12N\n s3_parquet_flush_threshold_bytes\x18n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes\x12R\n\x11s3_flush_interval\x18o \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12\x39\n\x13s3_flush_jitter_pct\x18p \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x10s3FlushJitterPct\x12L\n\x1ds3_flush_threshold_jitter_pct\x18q \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x19s3FlushThresholdJitterPct\x12\x41\n\x16s3_upload_max_attempts\x18r \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x00R\x13s3UploadMaxAttempts\x12Y\n\x15s3_upload_backoff_cap\x18s \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12s3UploadBackoffCap\x12\x31\n\x0es3_queue_depth\x18t \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\x0cs3QueueDepth\x12\x39\n\x15s3_max_buffered_bytes\x18u \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12s3MaxBufferedBytes\x12G\n\x0cs3_spill_dir\x18v \x01(\tB%\xbaH\"r\x1d\x18\x80 2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\ns3SpillDir\x12\x33\n\x12s3_spill_max_bytes\x18w \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12Y\n\x11tcp_write_timeout\x18x \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x00R\x0ftcpWriteTimeout\x12\x33\n\x0ftcp_queue_depth\x18y \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\rtcpQueueDepth\x12;\n\x16tcp_max_buffered_bytes\x18z \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x13tcpMaxBufferedBytes\x12\x42\n\x08hostname\x18\x82\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08hostname\x12\x42\n\x08location\x18\x83\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08location\x12;\n\x05label\x18\x84\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x05label\x12\x37\n\x03tag\x18\x85\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x03tag\x12\x33\n\x0e\x64\x61\x65mon_version\x18\x86\x01 \x01(\tB\x0b\xbaH\x08r\x03\x18\xfd\x01\xc8\x01\x00R\rdaemonVersion\x12\'\n\x08ipv4_ttl\x18\x96\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x07ipv4Ttl\x12\x32\n\x0eipv6_hop_limit\x18\x97\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x0cipv6HopLimit\x12J\n\rlistener_auth\x18\x98\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x0clistenerAuth\x12Z\n\x13prometheus_listener\x18\x99\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x12prometheusListener\x12U\n\x13\x61\x64min_listener_auth\x18\x9a\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x11\x61\x64minListenerAuth\x12\'\n\tgrpc_port\x18\xa0\x01 \x01(\rB\t\xbaH\x06*\x04\x18\xff\xff\x03R\x08grpcPort\x12N\n\rgrpc_listener\x18\xa1\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x0cgrpcListener\x12\x41\n\tlisteners\x18\xa2\x01 \x03(\x0b\x32\x18.xtcp_config.v1.ListenerB\x08\xbaH\x05\x92\x01\x02\x10\x10R\tlisteners\x12,\n\rpyroscope_url\x18\xaa\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0cpyroscopeUrl\x12\x35\n\x12pyroscope_app_name\x18\xab\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10pyroscopeAppName\x12\x37\n\x13pyroscope_sample_hz\x18\xac\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x11pyroscopeSampleHz\x12J\n\x1dpyroscope_upload_interval_sec\x18\xad\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1apyroscopeUploadIntervalSec\x12\x39\n\x14resolve_container_id\x18\xc8\x01 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x12resolveContainerId\x12\x37\n\x17\x65nrich_container_enable\x18\xc9\x01 \x01(\x08R\x15\x65nrichContainerEnable\x12\x37\n\x12\x64ocker_socket_path\x18\xca\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x10\x64ockerSocketPath\x12-\n\x12\x65nrich_lldp_enable\x18\xd2\x01 \x01(\x08R\x10\x65nrichLldpEnable\x12\x35\n\x11lldpd_socket_path\x18\xd3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0flldpdSocketPath\x12\x36\n\x12lldpd_version_hint\x18\xd4\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x10R\x10lldpdVersionHint\x12+\n\x11\x65nrich_nic_enable\x18\xdc\x01 \x01(\x08R\x0f\x65nrichNicEnable\x12+\n\x0cuplink_count\x18\xdd\x01 \x01(\rB\x07\xbaH\x04*\x02\x18\x02R\x0buplinkCount\x12\x36\n\x11uplink_interfaces\x18\xde\x01 \x03(\tB\x08\xbaH\x05\x92\x01\x02\x10\x02R\x10uplinkInterfaces\x12$\n\rpopulate_nsid\x18\xe6\x01 \x01(\x08R\x0cpopulateNsid\x12+\n\x11\x65nrich_asn_enable\x18\xf0\x01 \x01(\x08R\x0f\x65nrichAsnEnable\x12)\n\x0b\x61sn_db_path\x18\xf1\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\tasnDbPath\x12L\n\x14\x61sn_refresh_interval\x18\xf2\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x12\x61snRefreshInterval\x12=\n\x15ipmeta_bootstrap_path\x18\xf3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x13ipmetaBootstrapPath\x12\x35\n\x11ipmeta_cache_path\x18\xf4\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0fipmetaCachePath\x12\x35\n\x16\x65nrich_locality_enable\x18\xf5\x01 \x01(\x08R\x14\x65nrichLocalityEnable\x12V\n\x19locality_refresh_interval\x18\xf6\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x17localityRefreshInterval\x12\x35\n\x16locality_events_enable\x18\xf7\x01 \x01(\x08R\x14localityEventsEnable\x12\x45\n\x0clink_monitor\x18\xfa\x01 \x01(\x0b\x32!.xtcp_config.v1.LinkMonitorConfigR\x0blinkMonitor:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_frequency > this.poll_timeout\"\x9f\x01\n\x14\x45nabledDeserializers\x12K\n\x07\x65nabled\x18\x01 \x03(\x0b\x32\x31.xtcp_config.v1.EnabledDeserializers.EnabledEntryR\x07\x65nabled\x1a:\n\x0c\x45nabledEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01*h\n\x0fListenerNetwork\x12 \n\x1cLISTENER_NETWORK_UNSPECIFIED\x10\x00\x12\x18\n\x14LISTENER_NETWORK_TCP\x10\x01\x12\x19\n\x15LISTENER_NETWORK_UNIX\x10\x02*\xa1\x01\n\x10ListenerAuthMode\x12\"\n\x1eLISTENER_AUTH_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bLISTENER_AUTH_MODE_DISABLED\x10\x01\x12 \n\x1cLISTENER_AUTH_MODE_RAW_TOKEN\x10\x02\x12&\n\"LISTENER_AUTH_MODE_HMAC_UTC_MINUTE\x10\x03*\xf7\x01\n\rEndpointClass\x12\x1e\n\x1a\x45NDPOINT_CLASS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45NDPOINT_CLASS_HEALTH\x10\x01\x12\x1a\n\x16\x45NDPOINT_CLASS_METRICS\x10\x02\x12!\n\x1d\x45NDPOINT_CLASS_METRICS_DETAIL\x10\x03\x12\x15\n\x11\x45NDPOINT_CLASS_IP\x10\x04\x12\x18\n\x14\x45NDPOINT_CLASS_DEBUG\x10\x05\x12\x1c\n\x18\x45NDPOINT_CLASS_GRPC_READ\x10\x06\x12\x1d\n\x19\x45NDPOINT_CLASS_GRPC_ADMIN\x10\x07\x32\xa5\x07\n\rConfigService\x12\x61\n\x03Get\x12\x1a.xtcp_config.v1.GetRequest\x1a\x1b.xtcp_config.v1.GetResponse\"!\xc8\xf3\x18\x01\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Get:\x01*\x12\x61\n\x03Set\x12\x1a.xtcp_config.v1.SetRequest\x1a\x1b.xtcp_config.v1.SetResponse\"!\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Set:\x01*\x12\x95\x01\n\x10SetPollFrequency\x12\'.xtcp_config.v1.SetPollFrequencyRequest\x1a(.xtcp_config.v1.SetPollFrequencyResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetPollFrequency:\x01*\x12\x81\x01\n\x0bTriggerPoll\x12\".xtcp_config.v1.TriggerPollRequest\x1a#.xtcp_config.v1.TriggerPollResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/TriggerPoll:\x01*\x12\x95\x01\n\x10TriggerPollBurst\x12\'.xtcp_config.v1.TriggerPollBurstRequest\x1a(.xtcp_config.v1.TriggerPollBurstResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/TriggerPollBurst:\x01*\x12\x81\x01\n\x0bSetS3Upload\x12\".xtcp_config.v1.SetS3UploadRequest\x1a#.xtcp_config.v1.SetS3UploadResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/SetS3Upload:\x01*\x12\x95\x01\n\x10SetEnvelopeFlush\x12\'.xtcp_config.v1.SetEnvelopeFlushRequest\x1a(.xtcp_config.v1.SetEnvelopeFlushResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetEnvelopeFlush:\x01*B\xaf\x01\n\x12\x63om.xtcp_config.v1B\x0fXtcpConfigProtoP\x01Z3github.com/randomizedcoder/xtcp2/gen/go/xtcp_config\xa2\x02\x03XXX\xaa\x02\rXtcpConfig.V1\xca\x02\rXtcpConfig\\V1\xe2\x02\x19XtcpConfig\\V1\\GPBMetadata\xea\x02\x0eXtcpConfig::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -260,6 +260,12 @@ _globals['_XTCPCONFIG'].fields_by_name['s3_spill_dir']._serialized_options = b'\272H\"r\035\030\200 2\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000' _globals['_XTCPCONFIG'].fields_by_name['s3_spill_max_bytes']._loaded_options = None _globals['_XTCPCONFIG'].fields_by_name['s3_spill_max_bytes']._serialized_options = b'\272H\003\310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['tcp_write_timeout']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['tcp_write_timeout']._serialized_options = b'\272H\017\252\001\t\"\003\010\220\0342\002\010\001\310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['tcp_queue_depth']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['tcp_queue_depth']._serialized_options = b'\272H\010*\003\030\200 \310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['tcp_max_buffered_bytes']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['tcp_max_buffered_bytes']._serialized_options = b'\272H\003\310\001\000' _globals['_XTCPCONFIG'].fields_by_name['hostname']._loaded_options = None _globals['_XTCPCONFIG'].fields_by_name['hostname']._serialized_options = b'\272H\"r\035\030\375\0012\030^[^\\x00-\\x1f\\x7f-\\x9f]*$\310\001\000' _globals['_XTCPCONFIG'].fields_by_name['location']._loaded_options = None @@ -330,12 +336,12 @@ _globals['_CONFIGSERVICE'].methods_by_name['SetS3Upload']._serialized_options = b'\310\363\030\002\202\323\344\223\002\037\032\032/ConfigService/SetS3Upload:\001*' _globals['_CONFIGSERVICE'].methods_by_name['SetEnvelopeFlush']._loaded_options = None _globals['_CONFIGSERVICE'].methods_by_name['SetEnvelopeFlush']._serialized_options = b'\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/SetEnvelopeFlush:\001*' - _globals['_LISTENERNETWORK']._serialized_start=11242 - _globals['_LISTENERNETWORK']._serialized_end=11346 - _globals['_LISTENERAUTHMODE']._serialized_start=11349 - _globals['_LISTENERAUTHMODE']._serialized_end=11510 - _globals['_ENDPOINTCLASS']._serialized_start=11513 - _globals['_ENDPOINTCLASS']._serialized_end=11760 + _globals['_LISTENERNETWORK']._serialized_start=11447 + _globals['_LISTENERNETWORK']._serialized_end=11551 + _globals['_LISTENERAUTHMODE']._serialized_start=11554 + _globals['_LISTENERAUTHMODE']._serialized_end=11715 + _globals['_ENDPOINTCLASS']._serialized_start=11718 + _globals['_ENDPOINTCLASS']._serialized_end=11965 _globals['_GETREQUEST']._serialized_start=173 _globals['_GETREQUEST']._serialized_end=185 _globals['_GETRESPONSE']._serialized_start=187 @@ -373,11 +379,11 @@ _globals['_LINKMONITORCONFIG']._serialized_start=3452 _globals['_LINKMONITORCONFIG']._serialized_end=5270 _globals['_XTCPCONFIG']._serialized_start=5273 - _globals['_XTCPCONFIG']._serialized_end=11078 - _globals['_ENABLEDDESERIALIZERS']._serialized_start=11081 - _globals['_ENABLEDDESERIALIZERS']._serialized_end=11240 - _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_start=11182 - _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_end=11240 - _globals['_CONFIGSERVICE']._serialized_start=11763 - _globals['_CONFIGSERVICE']._serialized_end=12696 + _globals['_XTCPCONFIG']._serialized_end=11283 + _globals['_ENABLEDDESERIALIZERS']._serialized_start=11286 + _globals['_ENABLEDDESERIALIZERS']._serialized_end=11445 + _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_start=11387 + _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_end=11445 + _globals['_CONFIGSERVICE']._serialized_start=11968 + _globals['_CONFIGSERVICE']._serialized_end=12901 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi b/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi index 6f81f626f..362ff1d6d 100644 --- a/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi +++ b/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi @@ -253,7 +253,7 @@ class LinkMonitorConfig(_message.Message): def __init__(self, enable: _Optional[bool] = ..., baseline_file: _Optional[str] = ..., settle: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., resync: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., stats_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., stats_include: _Optional[str] = ..., stats_exclude: _Optional[str] = ..., netstat_fields: _Optional[str] = ..., max_speed_exceptions: _Optional[_Iterable[str]] = ..., metrics_core_include: _Optional[str] = ..., metrics_core_exclude: _Optional[str] = ..., metrics_all: _Optional[bool] = ..., collection_mode: _Optional[str] = ..., watch_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., slow_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., on_demand_ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., on_demand_wait: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error_window: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., flap_window: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error_classes: _Optional[str] = ..., error_exclude: _Optional[str] = ..., metrics_categories: _Optional[str] = ..., metrics_interface_paths: _Optional[bool] = ..., metrics_all_path: _Optional[str] = ..., ip_paths: _Optional[bool] = ..., ip_max_bytes: _Optional[int] = ..., ip_listen: _Optional[str] = ..., learn_deadline: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ... class XtcpConfig(_message.Message): - __slots__ = ("nl_timeout_milliseconds", "poll_frequency", "poll_timeout", "poll_jitter_pct", "max_loops", "netlinkers", "netlinkers_done_chan_size", "nlmsg_seq", "packet_size", "packet_size_mply", "modulus", "enabled_deserializers", "io_uring", "io_uring_recv_batch_size", "io_uring_cqe_batch_size", "max_dump_bytes", "max_records_per_netns", "max_records_per_poll", "io_uring_sockstat_batch_size", "io_uring_sockstat_workers", "reconcile_frequency", "reconcile_before_poll", "max_netns", "reconcile_timeout", "max_netns_per_owner", "max_netns_adds_per_reconcile", "write_files", "capture_path", "dest_write_files", "debug_level", "debug_prometheus", "dest", "marshal_to", "csv_columns", "xtcp_proto_file", "envelope_flush_threshold_bytes", "envelope_flush_threshold_rows", "topic", "kafka_schema_url", "kafka_produce_timeout", "kafka_compression", "s3_endpoint", "s3_region", "s3_bucket", "s3_prefix", "s3_access_key", "s3_secret_key", "s3_skip_bucket_probe", "s3_allow_insecure", "s3_ca_file", "s3_parquet_flush_threshold_bytes", "s3_flush_interval", "s3_flush_jitter_pct", "s3_flush_threshold_jitter_pct", "s3_upload_max_attempts", "s3_upload_backoff_cap", "s3_queue_depth", "s3_max_buffered_bytes", "s3_spill_dir", "s3_spill_max_bytes", "hostname", "location", "label", "tag", "daemon_version", "ipv4_ttl", "ipv6_hop_limit", "listener_auth", "prometheus_listener", "admin_listener_auth", "grpc_port", "grpc_listener", "listeners", "pyroscope_url", "pyroscope_app_name", "pyroscope_sample_hz", "pyroscope_upload_interval_sec", "resolve_container_id", "enrich_container_enable", "docker_socket_path", "enrich_lldp_enable", "lldpd_socket_path", "lldpd_version_hint", "enrich_nic_enable", "uplink_count", "uplink_interfaces", "populate_nsid", "enrich_asn_enable", "asn_db_path", "asn_refresh_interval", "ipmeta_bootstrap_path", "ipmeta_cache_path", "enrich_locality_enable", "locality_refresh_interval", "locality_events_enable", "link_monitor") + __slots__ = ("nl_timeout_milliseconds", "poll_frequency", "poll_timeout", "poll_jitter_pct", "max_loops", "netlinkers", "netlinkers_done_chan_size", "nlmsg_seq", "packet_size", "packet_size_mply", "modulus", "enabled_deserializers", "io_uring", "io_uring_recv_batch_size", "io_uring_cqe_batch_size", "max_dump_bytes", "max_records_per_netns", "max_records_per_poll", "io_uring_sockstat_batch_size", "io_uring_sockstat_workers", "reconcile_frequency", "reconcile_before_poll", "max_netns", "reconcile_timeout", "max_netns_per_owner", "max_netns_adds_per_reconcile", "write_files", "capture_path", "dest_write_files", "debug_level", "debug_prometheus", "dest", "marshal_to", "csv_columns", "xtcp_proto_file", "envelope_flush_threshold_bytes", "envelope_flush_threshold_rows", "topic", "kafka_schema_url", "kafka_produce_timeout", "kafka_compression", "s3_endpoint", "s3_region", "s3_bucket", "s3_prefix", "s3_access_key", "s3_secret_key", "s3_skip_bucket_probe", "s3_allow_insecure", "s3_ca_file", "s3_parquet_flush_threshold_bytes", "s3_flush_interval", "s3_flush_jitter_pct", "s3_flush_threshold_jitter_pct", "s3_upload_max_attempts", "s3_upload_backoff_cap", "s3_queue_depth", "s3_max_buffered_bytes", "s3_spill_dir", "s3_spill_max_bytes", "tcp_write_timeout", "tcp_queue_depth", "tcp_max_buffered_bytes", "hostname", "location", "label", "tag", "daemon_version", "ipv4_ttl", "ipv6_hop_limit", "listener_auth", "prometheus_listener", "admin_listener_auth", "grpc_port", "grpc_listener", "listeners", "pyroscope_url", "pyroscope_app_name", "pyroscope_sample_hz", "pyroscope_upload_interval_sec", "resolve_container_id", "enrich_container_enable", "docker_socket_path", "enrich_lldp_enable", "lldpd_socket_path", "lldpd_version_hint", "enrich_nic_enable", "uplink_count", "uplink_interfaces", "populate_nsid", "enrich_asn_enable", "asn_db_path", "asn_refresh_interval", "ipmeta_bootstrap_path", "ipmeta_cache_path", "enrich_locality_enable", "locality_refresh_interval", "locality_events_enable", "link_monitor") NL_TIMEOUT_MILLISECONDS_FIELD_NUMBER: _ClassVar[int] POLL_FREQUENCY_FIELD_NUMBER: _ClassVar[int] POLL_TIMEOUT_FIELD_NUMBER: _ClassVar[int] @@ -314,6 +314,9 @@ class XtcpConfig(_message.Message): S3_MAX_BUFFERED_BYTES_FIELD_NUMBER: _ClassVar[int] S3_SPILL_DIR_FIELD_NUMBER: _ClassVar[int] S3_SPILL_MAX_BYTES_FIELD_NUMBER: _ClassVar[int] + TCP_WRITE_TIMEOUT_FIELD_NUMBER: _ClassVar[int] + TCP_QUEUE_DEPTH_FIELD_NUMBER: _ClassVar[int] + TCP_MAX_BUFFERED_BYTES_FIELD_NUMBER: _ClassVar[int] HOSTNAME_FIELD_NUMBER: _ClassVar[int] LOCATION_FIELD_NUMBER: _ClassVar[int] LABEL_FIELD_NUMBER: _ClassVar[int] @@ -410,6 +413,9 @@ class XtcpConfig(_message.Message): s3_max_buffered_bytes: int s3_spill_dir: str s3_spill_max_bytes: int + tcp_write_timeout: _duration_pb2.Duration + tcp_queue_depth: int + tcp_max_buffered_bytes: int hostname: str location: str label: str @@ -446,7 +452,7 @@ class XtcpConfig(_message.Message): locality_refresh_interval: _duration_pb2.Duration locality_events_enable: bool link_monitor: LinkMonitorConfig - def __init__(self, nl_timeout_milliseconds: _Optional[int] = ..., poll_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_jitter_pct: _Optional[int] = ..., max_loops: _Optional[int] = ..., netlinkers: _Optional[int] = ..., netlinkers_done_chan_size: _Optional[int] = ..., nlmsg_seq: _Optional[int] = ..., packet_size: _Optional[int] = ..., packet_size_mply: _Optional[int] = ..., modulus: _Optional[int] = ..., enabled_deserializers: _Optional[_Union[EnabledDeserializers, _Mapping]] = ..., io_uring: _Optional[bool] = ..., io_uring_recv_batch_size: _Optional[int] = ..., io_uring_cqe_batch_size: _Optional[int] = ..., max_dump_bytes: _Optional[int] = ..., max_records_per_netns: _Optional[int] = ..., max_records_per_poll: _Optional[int] = ..., io_uring_sockstat_batch_size: _Optional[int] = ..., io_uring_sockstat_workers: _Optional[int] = ..., reconcile_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., reconcile_before_poll: _Optional[bool] = ..., max_netns: _Optional[int] = ..., reconcile_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., max_netns_per_owner: _Optional[int] = ..., max_netns_adds_per_reconcile: _Optional[int] = ..., write_files: _Optional[int] = ..., capture_path: _Optional[str] = ..., dest_write_files: _Optional[int] = ..., debug_level: _Optional[int] = ..., debug_prometheus: _Optional[bool] = ..., dest: _Optional[str] = ..., marshal_to: _Optional[str] = ..., csv_columns: _Optional[str] = ..., xtcp_proto_file: _Optional[str] = ..., envelope_flush_threshold_bytes: _Optional[int] = ..., envelope_flush_threshold_rows: _Optional[int] = ..., topic: _Optional[str] = ..., kafka_schema_url: _Optional[str] = ..., kafka_produce_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., kafka_compression: _Optional[str] = ..., s3_endpoint: _Optional[str] = ..., s3_region: _Optional[str] = ..., s3_bucket: _Optional[str] = ..., s3_prefix: _Optional[str] = ..., s3_access_key: _Optional[str] = ..., s3_secret_key: _Optional[str] = ..., s3_skip_bucket_probe: _Optional[bool] = ..., s3_allow_insecure: _Optional[bool] = ..., s3_ca_file: _Optional[str] = ..., s3_parquet_flush_threshold_bytes: _Optional[int] = ..., s3_flush_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_flush_jitter_pct: _Optional[int] = ..., s3_flush_threshold_jitter_pct: _Optional[int] = ..., s3_upload_max_attempts: _Optional[int] = ..., s3_upload_backoff_cap: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_queue_depth: _Optional[int] = ..., s3_max_buffered_bytes: _Optional[int] = ..., s3_spill_dir: _Optional[str] = ..., s3_spill_max_bytes: _Optional[int] = ..., hostname: _Optional[str] = ..., location: _Optional[str] = ..., label: _Optional[str] = ..., tag: _Optional[str] = ..., daemon_version: _Optional[str] = ..., ipv4_ttl: _Optional[int] = ..., ipv6_hop_limit: _Optional[int] = ..., listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., prometheus_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., admin_listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., grpc_port: _Optional[int] = ..., grpc_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., listeners: _Optional[_Iterable[_Union[Listener, _Mapping]]] = ..., pyroscope_url: _Optional[str] = ..., pyroscope_app_name: _Optional[str] = ..., pyroscope_sample_hz: _Optional[int] = ..., pyroscope_upload_interval_sec: _Optional[int] = ..., resolve_container_id: _Optional[bool] = ..., enrich_container_enable: _Optional[bool] = ..., docker_socket_path: _Optional[str] = ..., enrich_lldp_enable: _Optional[bool] = ..., lldpd_socket_path: _Optional[str] = ..., lldpd_version_hint: _Optional[str] = ..., enrich_nic_enable: _Optional[bool] = ..., uplink_count: _Optional[int] = ..., uplink_interfaces: _Optional[_Iterable[str]] = ..., populate_nsid: _Optional[bool] = ..., enrich_asn_enable: _Optional[bool] = ..., asn_db_path: _Optional[str] = ..., asn_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., ipmeta_bootstrap_path: _Optional[str] = ..., ipmeta_cache_path: _Optional[str] = ..., enrich_locality_enable: _Optional[bool] = ..., locality_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., locality_events_enable: _Optional[bool] = ..., link_monitor: _Optional[_Union[LinkMonitorConfig, _Mapping]] = ...) -> None: ... + def __init__(self, nl_timeout_milliseconds: _Optional[int] = ..., poll_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_jitter_pct: _Optional[int] = ..., max_loops: _Optional[int] = ..., netlinkers: _Optional[int] = ..., netlinkers_done_chan_size: _Optional[int] = ..., nlmsg_seq: _Optional[int] = ..., packet_size: _Optional[int] = ..., packet_size_mply: _Optional[int] = ..., modulus: _Optional[int] = ..., enabled_deserializers: _Optional[_Union[EnabledDeserializers, _Mapping]] = ..., io_uring: _Optional[bool] = ..., io_uring_recv_batch_size: _Optional[int] = ..., io_uring_cqe_batch_size: _Optional[int] = ..., max_dump_bytes: _Optional[int] = ..., max_records_per_netns: _Optional[int] = ..., max_records_per_poll: _Optional[int] = ..., io_uring_sockstat_batch_size: _Optional[int] = ..., io_uring_sockstat_workers: _Optional[int] = ..., reconcile_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., reconcile_before_poll: _Optional[bool] = ..., max_netns: _Optional[int] = ..., reconcile_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., max_netns_per_owner: _Optional[int] = ..., max_netns_adds_per_reconcile: _Optional[int] = ..., write_files: _Optional[int] = ..., capture_path: _Optional[str] = ..., dest_write_files: _Optional[int] = ..., debug_level: _Optional[int] = ..., debug_prometheus: _Optional[bool] = ..., dest: _Optional[str] = ..., marshal_to: _Optional[str] = ..., csv_columns: _Optional[str] = ..., xtcp_proto_file: _Optional[str] = ..., envelope_flush_threshold_bytes: _Optional[int] = ..., envelope_flush_threshold_rows: _Optional[int] = ..., topic: _Optional[str] = ..., kafka_schema_url: _Optional[str] = ..., kafka_produce_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., kafka_compression: _Optional[str] = ..., s3_endpoint: _Optional[str] = ..., s3_region: _Optional[str] = ..., s3_bucket: _Optional[str] = ..., s3_prefix: _Optional[str] = ..., s3_access_key: _Optional[str] = ..., s3_secret_key: _Optional[str] = ..., s3_skip_bucket_probe: _Optional[bool] = ..., s3_allow_insecure: _Optional[bool] = ..., s3_ca_file: _Optional[str] = ..., s3_parquet_flush_threshold_bytes: _Optional[int] = ..., s3_flush_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_flush_jitter_pct: _Optional[int] = ..., s3_flush_threshold_jitter_pct: _Optional[int] = ..., s3_upload_max_attempts: _Optional[int] = ..., s3_upload_backoff_cap: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_queue_depth: _Optional[int] = ..., s3_max_buffered_bytes: _Optional[int] = ..., s3_spill_dir: _Optional[str] = ..., s3_spill_max_bytes: _Optional[int] = ..., tcp_write_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., tcp_queue_depth: _Optional[int] = ..., tcp_max_buffered_bytes: _Optional[int] = ..., hostname: _Optional[str] = ..., location: _Optional[str] = ..., label: _Optional[str] = ..., tag: _Optional[str] = ..., daemon_version: _Optional[str] = ..., ipv4_ttl: _Optional[int] = ..., ipv6_hop_limit: _Optional[int] = ..., listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., prometheus_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., admin_listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., grpc_port: _Optional[int] = ..., grpc_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., listeners: _Optional[_Iterable[_Union[Listener, _Mapping]]] = ..., pyroscope_url: _Optional[str] = ..., pyroscope_app_name: _Optional[str] = ..., pyroscope_sample_hz: _Optional[int] = ..., pyroscope_upload_interval_sec: _Optional[int] = ..., resolve_container_id: _Optional[bool] = ..., enrich_container_enable: _Optional[bool] = ..., docker_socket_path: _Optional[str] = ..., enrich_lldp_enable: _Optional[bool] = ..., lldpd_socket_path: _Optional[str] = ..., lldpd_version_hint: _Optional[str] = ..., enrich_nic_enable: _Optional[bool] = ..., uplink_count: _Optional[int] = ..., uplink_interfaces: _Optional[_Iterable[str]] = ..., populate_nsid: _Optional[bool] = ..., enrich_asn_enable: _Optional[bool] = ..., asn_db_path: _Optional[str] = ..., asn_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., ipmeta_bootstrap_path: _Optional[str] = ..., ipmeta_cache_path: _Optional[str] = ..., enrich_locality_enable: _Optional[bool] = ..., locality_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., locality_events_enable: _Optional[bool] = ..., link_monitor: _Optional[_Union[LinkMonitorConfig, _Mapping]] = ...) -> None: ... class EnabledDeserializers(_message.Message): __slots__ = ("enabled",) diff --git a/pkg/xtcp/destinations_queue.go b/pkg/xtcp/destinations_queue.go new file mode 100644 index 000000000..eb2686b43 --- /dev/null +++ b/pkg/xtcp/destinations_queue.go @@ -0,0 +1,143 @@ +package xtcp + +import ( + "sync" + "time" +) + +// The bounded FIFO a destination worker drains. Lived behind the +// `dest_s3parquet` build tag until the tcp destination needed the same +// shape (#345, #339); it carries no s3-specific behavior, so it is +// untagged and shared. The s3 flavor constants and the s3 drop metrics +// stay in s3queue.go. + +// queueDepthDefaultCst is the envelope depth bound when a destination's +// depth knob is unset (0); queueDepthMaxCst is the largest a resolver will +// pass (the config's validate rule enforces the same cap). +const ( + queueDepthDefaultCst = 16 + queueDepthMaxCst = 4096 +) + +// Drop reasons, the reason label of the drop counters. +const ( + queueDropReasonDepth = "queue_depth" + queueDropReasonBytes = "buffered_bytes" +) + +// envelopeBytes is the queue payload — pointer to the pooled marshaled +// envelope. The worker is responsible for returning *buf to destBytesPool +// after consuming it (or dropping it). +type envelopeBytes struct { + buf *[]byte +} + +// droppedEnvelope is an envelope push evicted and why. +type droppedEnvelope struct { + item envelopeBytes + reason string +} + +// envelopeQueue is the bounded FIFO between Send and a destination worker. +// push never blocks: past maxDepth envelopes, or past maxBytes buffered +// bytes, it drops the oldest, so a slow or unreachable sink costs data +// rather than stalling the poller. The newest envelope is always kept, +// even when it alone is over maxBytes. notify (capacity 1) wakes the +// worker; it drains with pop. +type envelopeQueue struct { + mu sync.Mutex + items []envelopeBytes // ring of cap maxDepth+1 + head int + depth int + bytes int + maxDepth int + maxBytes int // 0 = no byte bound + notify chan struct{} +} + +func newEnvelopeQueue(maxDepth, maxBytes int) *envelopeQueue { + if maxDepth <= 0 { + maxDepth = queueDepthDefaultCst + } + return &envelopeQueue{ + items: make([]envelopeBytes, maxDepth+1), + maxDepth: maxDepth, + maxBytes: max(maxBytes, 0), + notify: make(chan struct{}, 1), + } +} + +// push appends item, evicts the oldest envelopes past either bound and +// wakes the worker. The evicted envelopes are returned for the caller to +// count and recycle outside the lock. +func (q *envelopeQueue) push(item envelopeBytes) []droppedEnvelope { + var dropped []droppedEnvelope + q.mu.Lock() + q.items[(q.head+q.depth)%len(q.items)] = item + q.depth++ + q.bytes += len(*item.buf) + for { + var reason string + switch { + case q.depth > q.maxDepth: + reason = queueDropReasonDepth + case q.maxBytes > 0 && q.bytes > q.maxBytes && q.depth > 1: + reason = queueDropReasonBytes + } + if reason == "" { + break + } + dropped = append(dropped, droppedEnvelope{item: q.popLocked(), reason: reason}) + } + q.mu.Unlock() + select { + case q.notify <- struct{}{}: + default: + } + return dropped +} + +// pop removes the oldest envelope; ok is false when the queue is empty. +func (q *envelopeQueue) pop() (item envelopeBytes, ok bool) { + q.mu.Lock() + defer q.mu.Unlock() + if q.depth == 0 { + return envelopeBytes{}, false + } + return q.popLocked(), true +} + +func (q *envelopeQueue) popLocked() envelopeBytes { + item := q.items[q.head] + q.items[q.head] = envelopeBytes{} + q.head = (q.head + 1) % len(q.items) + q.depth-- + q.bytes -= len(*item.buf) + return item +} + +// stats returns the queued envelope count and bytes. +func (q *envelopeQueue) stats() (depth, bytes int) { + q.mu.Lock() + defer q.mu.Unlock() + return q.depth, q.bytes +} + +// backoffWindow returns min(cap, base<<(attempt-1)) for attempt>=1, computed +// overflow-safe (the shift is bounded before it can exceed int64). Moved here +// from the s3parquet file when the tcp destination grew the same reconnect +// backoff (#339); the s3 upload path shares it. +func backoffWindow(base, capDur time.Duration, attempt int) time.Duration { + shift := attempt - 1 + if shift < 0 { + shift = 0 + } + if shift >= 33 { + return capDur + } + w := base << shift + if w <= 0 || w > capDur { + return capDur + } + return w +} diff --git a/pkg/xtcp/destinations_s3parquet.go b/pkg/xtcp/destinations_s3parquet.go index 2114511cd..0b225d168 100644 --- a/pkg/xtcp/destinations_s3parquet.go +++ b/pkg/xtcp/destinations_s3parquet.go @@ -137,13 +137,6 @@ type s3ParquetDest struct { // itself doesn't treat this as fatal (shutdown is in progress). var errSendOnClosed = errors.New("s3parquet destination closed") -// envelopeBytes is the queue payload — pointer to the pooled marshaled -// envelope. The worker is responsible for returning *buf to destBytesPool -// after consuming it. -type envelopeBytes struct { - buf *[]byte -} - // s3InsecureGauge is 1 while the s3parquet destination talks plaintext http // to its endpoint (-s3AllowInsecure). var s3InsecureGauge = prometheus.NewGauge(prometheus.GaugeOpts{ @@ -771,23 +764,6 @@ func classifyUploadErr(err error) string { } } -// backoffWindow returns min(cap, base<<(attempt-1)) for attempt>=1, computed -// overflow-safe (the shift is bounded before it can exceed int64). -func backoffWindow(base, capDur time.Duration, attempt int) time.Duration { - shift := attempt - 1 - if shift < 0 { - shift = 0 - } - if shift >= 33 { - return capDur - } - w := base << shift - if w <= 0 || w > capDur { - return capDur - } - return w -} - // objectKey builds the partitioned key for the next Parquet object. // Layout: /host=/date=/hour=/_.parquet // diff --git a/pkg/xtcp/destinations_stream_test.go b/pkg/xtcp/destinations_stream_test.go index bde72486b..aeec0e928 100644 --- a/pkg/xtcp/destinations_stream_test.go +++ b/pkg/xtcp/destinations_stream_test.go @@ -10,6 +10,9 @@ import ( "os" "sync" "testing" + "time" + + "github.com/prometheus/client_golang/prometheus/testutil" ) // TestStderrDestFactory: the stderr scheme is registered and writes to stderr. @@ -68,11 +71,40 @@ func TestTCPDest(t *testing.T) { } } -func TestTCPDest_dialError(t *testing.T) { - // Port 1 on localhost should refuse; dial must fail. +func TestTCPDest_sinkDownAtStart(t *testing.T) { + // Port 1 on localhost refuses. Pre-#339 the factory dialed here and + // aborted startup; now the dial is the worker's job, so the daemon + // starts with the sink down, Send never blocks, and the queued envelope + // is dropped (counted) once the attempt budget runs out. x := newTestXTCP(t, "tcp:127.0.0.1:1") - if _, err := newTCPDest(context.Background(), x); err == nil { - t.Fatal("expected dial error") + dest, err := newTCPDest(context.Background(), x) + if err != nil { + t.Fatalf("newTCPDest with the sink down: %v", err) + } + td, ok := dest.(*tcpDest) + if !ok { + t.Fatalf("dest is %T, want *tcpDest", dest) + } + td.attempts = 1 // one refused dial per envelope, no backoff + td.jitterDur = func(time.Duration) time.Duration { return 0 } + + b := []byte("queued-while-down\n") + n, err := dest.Send(context.Background(), &b) + if err != nil { + t.Fatalf("Send with the sink down: %v", err) + } + if n != 1 { + t.Errorf("Send n = %d, want 1", n) + } + if err := dest.Close(); err != nil { + t.Errorf("Close: %v", err) + } + // The attempt budget dropped the envelope: one dial error, one drop. + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "Dial", "error")); got < 1 { + t.Errorf("destTCP dial-error counter = %v, want >= 1", got) + } + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "dropped", "error")); got < 1 { + t.Errorf("destTCP dropped counter = %v, want >= 1", got) } } diff --git a/pkg/xtcp/destinations_tcp.go b/pkg/xtcp/destinations_tcp.go index d141f95d0..8ee49eac2 100644 --- a/pkg/xtcp/destinations_tcp.go +++ b/pkg/xtcp/destinations_tcp.go @@ -2,10 +2,20 @@ package xtcp import ( "context" + "errors" "fmt" "log" + "math" "net" "strings" + "sync" + "time" + + "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promauto" + + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_config" + "github.com/randomizedcoder/xtcp2/pkg/misc" ) // tcpDest writes each marshaled payload to a connected TCP socket: @@ -15,42 +25,428 @@ import ( // tcpDest writes bytes verbatim so it never corrupts a length-delimited // stream (e.g. protobufList). // -// Unlike udp, this uses the syscall write path only (no io_uring variant yet; -// it can follow the udp pattern later). Send is invoked serially. +// Writes flow through a bounded queue to one background worker, so the +// destination a stall can never touch is the poller (docs/redteam-plan.md +// rt-11-5, issue #345): Send never blocks — a wedged or unreachable sink +// costs queued envelopes (oldest first, counted in +// xtcp_tcp_dropped_total), not poll cycles. The worker bounds every write +// with SetWriteDeadline(tcp_write_timeout) — a blackholed route stalls +// delivery for the timeout, not the TCP retransmit window (~15.4 min at +// the prod-default tcp_retries2=15, which used to freeze collection). +// A failed write closes the conn and the next attempt re-dials under +// full-jitter backoff (docs/design-jitter-and-backoff.md), so a sink +// restart heals delivery without a daemon restart (issue #339). type tcpDest struct { x *XTCP - conn net.Conn + addr string + + queue *envelopeQueue + + writeTimeout time.Duration // per-write and per-dial bound + backoffCap time.Duration // cap on a single retry's jitter window + attempts int // write attempts per envelope before dropping + drainTimeout time.Duration // Close's wait on the worker (tests shrink it) + + // dial opens the sink conn; a field so tests can substitute fakes. + dial func(ctx context.Context) (net.Conn, error) + + // jitterDur draws a full-jitter sleep in [0, d]; sleep is the ctx-aware + // backoff sleep. Injectable for tests, like the s3parquet worker. + jitterDur func(time.Duration) time.Duration + sleep func(ctx context.Context, d time.Duration) bool + + metrics *tcpQueueMetrics + + connMu sync.Mutex + conn net.Conn + connDown bool // a write/dial failed since the last good conn + + closedCh chan struct{} + workerDone chan struct{} + closeOnce sync.Once +} + +// errTCPClosed is returned by Send when the destination has been Close'd. +// Callers in flushEnvelope log + counter-bump; the daemon itself doesn't +// treat this as fatal (shutdown is in progress). +var errTCPClosed = errors.New("tcp destination closed") + +// tcpWriteTimeoutDefaultCst is the per-write deadline when tcp_write_timeout +// is unset (0). The floor and ceiling are the Go-side belt beside the +// config's validate rule; the rule is the constant, the belt is +// defense-in-depth for configs built without validation. +const ( + tcpWriteTimeoutDefaultCst = 30 * time.Second + tcpWriteTimeoutMinCst = 1 * time.Second + tcpWriteTimeoutMaxCst = time.Hour +) + +// tcpWriteMaxAttemptsCst bounds the write attempts (dial + write) per +// envelope before it is dropped and counted; the backoff between attempts +// grows full-jitter from tcpBackoffBaseCst toward the derived cap. +const ( + tcpWriteMaxAttemptsCst = 3 + tcpBackoffBaseCst = time.Second +) + +// resolveTCPWriteTimeout returns the per-write deadline: tcp_write_timeout, +// or tcpWriteTimeoutDefaultCst when unset (0), clamped to the belt range. +func resolveTCPWriteTimeout(c *xtcp_config.XtcpConfig) time.Duration { + d := c.GetTcpWriteTimeout().AsDuration() + if d <= 0 { + return tcpWriteTimeoutDefaultCst + } + if d < tcpWriteTimeoutMinCst { + return tcpWriteTimeoutMinCst + } + if d > tcpWriteTimeoutMaxCst { + return tcpWriteTimeoutMaxCst + } + return d +} + +// resolveTCPQueueDepth returns the envelope depth bound: tcp_queue_depth, +// or tcpQueueDepth defaultCst when unset (0), capped like the config rule. +func resolveTCPQueueDepth(c *xtcp_config.XtcpConfig) int { + if c.GetTcpQueueDepth() == 0 { + return queueDepthDefaultCst + } + return int(min(c.GetTcpQueueDepth(), queueDepthMaxCst)) +} + +// resolveTCPMaxBufferedBytes returns the queue's byte bound: 0 (none) when +// tcp_max_buffered_bytes is unset, saturating at the largest int. +func resolveTCPMaxBufferedBytes(c *xtcp_config.XtcpConfig) int { + return int(min(c.GetTcpMaxBufferedBytes(), uint64(math.MaxInt))) +} + +// resolveTCPBackoffCap returns the cap on a single reconnect retry's jitter +// window: the derived clamp(poll_frequency/10, 1s, 1h). +func resolveTCPBackoffCap(c *xtcp_config.XtcpConfig) time.Duration { + capDur := c.GetPollFrequency().AsDuration() / 10 + if capDur < time.Second { + capDur = time.Second + } + if capDur > time.Hour { + capDur = time.Hour + } + return capDur } func newTCPDest(ctx context.Context, x *XTCP) (Destination, error) { addr := strings.TrimPrefix(x.config.Dest, schemeTCP+":") + if _, _, err := net.SplitHostPort(addr); err != nil { + return nil, fmt.Errorf("InitDestTCP dest %q: %w", x.config.Dest, err) + } + d := &tcpDest{ + x: x, + addr: addr, + queue: newEnvelopeQueue(resolveTCPQueueDepth(x.config), resolveTCPMaxBufferedBytes(x.config)), + writeTimeout: resolveTCPWriteTimeout(x.config), + backoffCap: resolveTCPBackoffCap(x.config), + attempts: tcpWriteMaxAttemptsCst, + drainTimeout: tcpWorkerDrainTimeoutCst, + jitterDur: misc.JitterDuration, + sleep: misc.SleepCtx, + metrics: newTCPQueueMetrics(x.registry), + closedCh: make(chan struct{}), + workerDone: make(chan struct{}), + } + // dial is a field (tests substitute fakes); production dials the sink + // under the write timeout. + d.dial = d.dialTCP + go d.worker(ctx) + return d, nil +} + +// dialTCP opens the sink conn, bounding the dial with the write timeout so +// a blackholed route costs tcp_write_timeout per attempt, not the OS dial +// timeout. +func (d *tcpDest) dialTCP(ctx context.Context) (net.Conn, error) { + dialCtx, cancel := context.WithTimeout(ctx, d.writeTimeout) + defer cancel() var dialer net.Dialer - conn, err := dialer.DialContext(ctx, "tcp", addr) + return dialer.DialContext(dialCtx, "tcp", d.addr) +} + +// Send enqueues the marshaled envelope for the background worker and never +// blocks: flushEnvelope runs on the poll goroutine, so a wedged or +// unreachable sink must not stall polling. Past the queue's depth or byte +// bound the oldest envelopes are dropped, counted (xtcp_tcp_dropped_total, +// xtcp_tcp_dropped_bytes_total and the queueFull counter) and their buffers +// returned to destBytesPool. +// +// Sends arriving after Close return errTCPClosed and refund the buffer to +// destBytesPool so the upstream pool stays warm. +// +// Returns (1, nil) on enqueue to mirror the per-record accounting the +// caller (flushEnvelope in poller.go) expects. +func (d *tcpDest) Send(_ context.Context, b *[]byte) (int, error) { + select { + case <-d.closedCh: + d.x.destBytesPool.Put(b) + return 0, errTCPClosed + default: + } + for _, drop := range d.queue.push(envelopeBytes{buf: b}) { + d.countDrop(drop) + d.x.destBytesPool.Put(drop.item.buf) + } + d.observeQueue() + return 1, nil +} + +// countDrop records one envelope the queue evicted. +func (d *tcpDest) countDrop(drop droppedEnvelope) { + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "queueFull", "error").Inc() + } + if d.metrics != nil { + d.metrics.dropped.WithLabelValues(drop.reason).Inc() + d.metrics.droppedBytes.WithLabelValues(drop.reason).Add(float64(len(*drop.item.buf))) + } +} + +// observeQueue sets the queue stage of the buffered-bytes gauge. +func (d *tcpDest) observeQueue() { + if d.metrics == nil { + return + } + _, bytes := d.queue.stats() + d.metrics.buffered.WithLabelValues("queue").Set(float64(bytes)) +} + +// countItemDrop records one envelope the worker itself dropped (attempts +// exhausted, or shutdown raced the item). +func (d *tcpDest) countItemDrop(reason string, n int) { + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "dropped", "error").Inc() + } + if d.metrics != nil { + d.metrics.dropped.WithLabelValues(reason).Inc() + d.metrics.droppedBytes.WithLabelValues(reason).Add(float64(n)) + } +} + +// worker drains the queue to the sink. One goroutine keeps envelope order; +// on Close it writes what is still queued (bounded by the drain window), so +// the shutdown flush in flushEnvelope survives a restart, then exits. +func (d *tcpDest) worker(ctx context.Context) { + defer close(d.workerDone) + for { + item, ok := d.queue.pop() + if ok { + d.observeQueue() + d.writeItem(ctx, item) + continue + } + select { + case <-d.closedCh: + d.drain(ctx) + return + case <-d.queue.notify: + case <-ctx.Done(): + return + } + } +} + +// drain writes still-queued envelopes until the queue empties or the drain +// window closes; past the window the rest are dropped and counted, and their +// buffers recycled. Writes run under a fresh context so a canceled parent +// (already-exiting daemon) cannot kill the drain mid-envelope; the window is +// the bound. +func (d *tcpDest) drain(ctx context.Context) { + dctx, cancel := context.WithTimeout(ctx, tcpWorkerDrainTimeoutCst) + defer cancel() + timer := time.NewTimer(tcpWorkerDrainTimeoutCst) + defer timer.Stop() + for { + item, ok := d.queue.pop() + if !ok { + return + } + select { + case <-timer.C: + d.countItemDrop("shutdown", len(*item.buf)) + d.x.destBytesPool.Put(item.buf) + continue + default: + } + d.writeItem(dctx, item) + } +} + +// writeItem writes one envelope, reconnecting under full-jitter backoff: +// every attempt bounds its dial and write with the write timeout, a failed +// write closes the conn (the next attempt re-dials), and past d.attempts +// the envelope is dropped and counted while the worker moves on. +func (d *tcpDest) writeItem(ctx context.Context, item envelopeBytes) { + defer d.x.destBytesPool.Put(item.buf) + for attempt := 1; ; attempt++ { + if ctx.Err() != nil { + d.countItemDrop("shutdown", len(*item.buf)) + return + } + n, err := d.attemptWrite(ctx, item) + if err == nil { + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "Writes", "count").Inc() + d.x.pC.WithLabelValues("destTCP", "WriteBytes", "count").Add(float64(n)) + } + return + } + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "Write", "error").Inc() + } + if d.x.debugLevel > 10 { + log.Printf("destTCP attempt %d/%d addr:%s err:%v bytes:%d", + attempt, d.attempts, d.addr, err, len(*item.buf)) + } + if attempt >= d.attempts { + d.countItemDrop("attempts", len(*item.buf)) + return + } + d.sleep(ctx, d.jitterDur(backoffWindow(tcpBackoffBaseCst, d.backoffCap, attempt))) + } +} + +// attemptWrite returns the cached conn (believed live) or dials a fresh +// one, then writes the envelope under the write deadline. +func (d *tcpDest) attemptWrite(ctx context.Context, item envelopeBytes) (int, error) { + conn, err := d.getConn(ctx) + if err != nil { + return 0, fmt.Errorf("tcp dest dial %q: %w", d.addr, err) + } + if err := conn.SetWriteDeadline(time.Now().Add(d.writeTimeout)); err != nil { + d.dropConn() + return 0, fmt.Errorf("tcp dest SetWriteDeadline: %w", err) + } + n, err := conn.Write(*item.buf) if err != nil { - return nil, fmt.Errorf("InitDestTCP net.Dial(tcp, %q): %w", addr, err) + d.dropConn() + return 0, err } - return &tcpDest{x: x, conn: conn}, nil + return n, nil } -func (d *tcpDest) Send(_ context.Context, b *[]byte) (int, error) { - n, err := d.conn.Write(*b) +// getConn returns the cached conn, or dials and caches a fresh one. A conn +// is cached only right after a successful dial; every write failure drops +// it, so a cached conn is one no attempt has yet failed on. The dial runs +// OUTSIDE connMu — it can block for the write timeout, and holding the +// mutex across it would deadlock Close's dropConn (found by the eviction +// test's goroutine dump). Reconnects — a dial that follows a drop — are +// counted. +func (d *tcpDest) getConn(ctx context.Context) (net.Conn, error) { + d.connMu.Lock() + if d.conn != nil { + conn := d.conn + d.connMu.Unlock() + return conn, nil + } + d.connMu.Unlock() + + conn, err := d.dial(ctx) if err != nil { - d.x.pC.WithLabelValues("destTCP", "Write", "error").Inc() - if d.x.debugLevel > 100 { - log.Printf("destTCP conn.Write err:%v", err) + d.connMu.Lock() + d.connDown = true + d.connMu.Unlock() + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "Dial", "error").Inc() } - return 0, err + return nil, err + } + d.connMu.Lock() + if d.conn != nil { + // Another goroutine won the dial race; keep theirs. + d.connMu.Unlock() + _ = conn.Close() //nolint:errcheck // loser of the dial race; teardown best-effort + return d.getConnLocked() + } + if d.connDown { + d.connDown = false + if d.x.pC != nil { + d.x.pC.WithLabelValues("destTCP", "Reconnect", "count").Inc() + } + } + d.conn = conn + d.connMu.Unlock() + return conn, nil +} + +// getConnLocked returns the cached conn with connMu already held. +func (d *tcpDest) getConnLocked() (net.Conn, error) { + conn := d.conn + d.connMu.Unlock() + if conn == nil { + return nil, errTCPClosed + } + return conn, nil +} + +// dropConn closes and forgets the cached conn; the next attempt re-dials. +func (d *tcpDest) dropConn() { + d.connMu.Lock() + conn := d.conn + d.conn = nil + d.connDown = true + d.connMu.Unlock() + if conn != nil { + _ = conn.Close() //nolint:errcheck // teardown best-effort; the process is exiting } - d.x.pC.WithLabelValues("destTCP", "Writes", "count").Inc() - d.x.pC.WithLabelValues("destTCP", "WriteBytes", "count").Add(float64(n)) - return 1, nil } func (d *tcpDest) Close() error { - if d.conn != nil { - return d.conn.Close() + var err error + d.closeOnce.Do(func() { + close(d.closedCh) + select { + case <-d.workerDone: + d.dropConn() + case <-time.After(d.drainTimeout): + // The drain window closed with a write or dial still in flight; + // force the conn closed so the worker unwinds instead of parking + // in a full write-deadline block. + d.dropConn() + err = fmt.Errorf("tcp destination worker drain timeout after %s", d.drainTimeout) + } + }) + return err +} + +// tcpWorkerDrainTimeoutCst bounds Close's wait on the worker. +const tcpWorkerDrainTimeoutCst = 5 * time.Second + +// tcpQueueMetrics are the bounded queue's drop counters and buffer gauge — +// the tcp mirror of the s3parquet queue metrics. +type tcpQueueMetrics struct { + dropped *prometheus.CounterVec // envelopes, by reason + droppedBytes *prometheus.CounterVec // bytes, by reason + buffered *prometheus.GaugeVec // bytes held, by stage +} + +func newTCPQueueMetrics(reg prometheus.Registerer) *tcpQueueMetrics { + if reg == nil { + reg = prometheus.DefaultRegisterer + } + f := promauto.With(reg) + return &tcpQueueMetrics{ + dropped: f.NewCounterVec(prometheus.CounterOpts{ + Subsystem: promSubsystemXTCP, + Name: "tcp_dropped_total", + Help: "Envelopes the tcp destination dropped, oldest first: reason=queue_depth (-tcpQueueDepth), buffered_bytes (-tcpMaxBufferedBytes), attempts (write attempts exhausted — the sink was unreachable for tcpWriteTimeout x attempts), shutdown (still queued at close).", + }, []string{promLabelReasonCst}), + droppedBytes: f.NewCounterVec(prometheus.CounterOpts{ + Subsystem: promSubsystemXTCP, + Name: "tcp_dropped_bytes_total", + Help: "Marshaled envelope bytes the tcp destination dropped, by the same reasons as tcp_dropped_total.", + }, []string{promLabelReasonCst}), + buffered: f.NewGaugeVec(prometheus.GaugeOpts{ + Subsystem: promSubsystemXTCP, + Name: "tcp_buffered_bytes", + Help: "Bytes the tcp destination holds: stage=queue (marshaled envelopes awaiting the worker).", + }, []string{"stage"}), } - return nil } func init() { diff --git a/pkg/xtcp/destinations_tcp_test.go b/pkg/xtcp/destinations_tcp_test.go index e89c00bad..78df5ef54 100644 --- a/pkg/xtcp/destinations_tcp_test.go +++ b/pkg/xtcp/destinations_tcp_test.go @@ -1,12 +1,19 @@ package xtcp import ( + "bufio" "bytes" "context" + "errors" + "fmt" "io" "net" + "strings" + "sync" "testing" "time" + + "github.com/prometheus/client_golang/prometheus/testutil" ) // TestTCPDest_send drives the tcp destination against a real in-process TCP @@ -59,3 +66,211 @@ func TestTCPDest_send(t *testing.T) { t.Fatal("timed out waiting for the tcp payload") } } + +// TestTCPDest_reconnect drives #339's contract: a write failure closes the +// conn and the next attempt re-dials, so a sink restart heals delivery +// without restarting the daemon. The server reads one payload, kills the +// conn, then accepts a second one. +func TestTCPDest_reconnect(t *testing.T) { + ln, err := net.Listen("tcp", "127.0.0.1:0") + if err != nil { + t.Fatalf("net.Listen: %v", err) + } + t.Cleanup(func() { _ = ln.Close() }) + + first := make(chan []byte, 1) + second := make(chan []byte, 1) + go func() { + conn, aerr := ln.Accept() + if aerr != nil { + return + } + // Read the first payload as a line, then kill the conn: ReadAll would + // block until the client closes, which is exactly the race under test. + line, _ := bufio.NewReader(conn).ReadString('\n') + first <- []byte(line) + _ = conn.Close() // kills the first conn; the next write fails + + conn2, aerr2 := ln.Accept() + if aerr2 != nil { + second <- nil + return + } + // Line-read too: the client only closes after Close(), which the + // test reaches after reading this channel. + line2, _ := bufio.NewReader(conn2).ReadString('\n') + second <- []byte(line2) + }() + + x := newTestXTCP(t, schemeTCP+":"+ln.Addr().String()) + dest, err := newTCPDest(context.Background(), x) + if err != nil { + t.Fatalf("newTCPDest: %v", err) + } + td := dest.(*tcpDest) + td.writeTimeout = 2 * time.Second + td.jitterDur = func(time.Duration) time.Duration { return 0 } // backoff now + td.drainTimeout = 2 * time.Second + + send := func(p string) { + t.Helper() + b := []byte(p) + n, serr := dest.Send(context.Background(), &b) + if serr != nil || n != 1 { + t.Fatalf("Send(%q) = (%d, %v)", p, n, serr) + } + } + send("first\n") + select { + case rc := <-first: + if string(rc) != "first\n" { + t.Fatalf("first payload = %q", rc) + } + case <-time.After(4 * time.Second): + t.Fatal("timed out waiting for the first payload") + } + + // The server killed the first conn, but a write to a FIN-closed socket + // can still land in the kernel buffer (the RST is in flight), so keep + // sending: one write must fail — that is the reconnect trigger — and the + // payload after it must arrive on the fresh conn. + deadline := time.After(8 * time.Second) + for { + send("second\n") + select { + case rc := <-second: + if string(rc) != "second\n" { + t.Fatalf("second payload = %q", rc) + } + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "Write", "error")); got < 1 { + t.Errorf("destTCP write-error counter = %v, want >= 1 (the failed write drove the reconnect)", got) + } + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "Reconnect", "count")); got < 1 { + t.Errorf("destTCP reconnect counter = %v, want >= 1", got) + } + if err := dest.Close(); err != nil { + t.Errorf("Close: %v", err) + } + return + case <-time.After(150 * time.Millisecond): + // keep sending until the RST lands + case <-deadline: + t.Fatal("timed out waiting for the reconnected payload") + } + } +} + +// TestTCPDest_writeTimeout drives #345's contract: a write that never +// completes (the sink stops reading) is bounded by the deadline, not the +// TCP retransmit window. The dial is faked onto a pipe whose far end +// nobody reads, so the write blocks until the deadline fires. +func TestTCPDest_writeTimeout(t *testing.T) { + x := newTestXTCP(t, schemeTCP+":127.0.0.1:1") + dest, err := newTCPDest(context.Background(), x) + if err != nil { + t.Fatalf("newTCPDest: %v", err) + } + td := dest.(*tcpDest) + + serverConn, clientConn := net.Pipe() + t.Cleanup(func() { _ = serverConn.Close() }) + td.dial = func(context.Context) (net.Conn, error) { return clientConn, nil } + td.writeTimeout = 100 * time.Millisecond + td.attempts = 2 + td.jitterDur = func(time.Duration) time.Duration { return 0 } + + started := time.Now() + b := []byte("blocked-write\n") + if _, err := dest.Send(context.Background(), &b); err != nil { + t.Fatalf("Send: %v", err) + } + + // The write must fail within ~attempts*timeout, not park for the + // retransmit window. Poll the write-error counter. + deadline := time.After(5 * time.Second) + for { + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "Write", "error")); got >= 1 { + break + } + select { + case <-deadline: + t.Fatalf("the blocked write never errored (elapsed %v)", time.Since(started)) + default: + time.Sleep(20 * time.Millisecond) + } + } + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "dropped", "error")); got < 1 { + t.Errorf("destTCP dropped counter = %v, want >= 1 (attempts exhausted)", got) + } + if err := dest.Close(); err != nil { + t.Errorf("Close: %v", err) + } +} + +// TestTCPDest_queueEviction drives the queueFull path: past the depth bound +// the oldest envelope is dropped and counted, and the newest is kept. The +// dial parks on a channel so the worker holds the head while the test fills +// the queue; the cleanup unblocks it and the product attempt budget drains +// the rest. +func TestTCPDest_queueEviction(t *testing.T) { + x := newTestXTCP(t, schemeTCP+":127.0.0.1:1") + dest, err := newTCPDest(context.Background(), x) + if err != nil { + t.Fatalf("newTCPDest: %v", err) + } + td := dest.(*tcpDest) + td.jitterDur = func(time.Duration) time.Duration { return 0 } + td.drainTimeout = 200 * time.Millisecond + + parked := make(chan struct{}, 1) + release := make(chan struct{}) + var parkedOnce sync.Once + td.dial = func(ctx context.Context) (net.Conn, error) { + parkedOnce.Do(func() { parked <- struct{}{} }) + select { + case <-release: + return nil, errors.New("released") + case <-ctx.Done(): + return nil, ctx.Err() + } + } + + // depth 16 by default; the worker pops the head as soon as it is pushed + // (then parks in dial), so send well past the bound: eviction is + // guaranteed regardless of when the pop lands. + for i := range 40 { + b := []byte(fmt.Sprintf("env-%d\n", i)) + if _, serr := dest.Send(context.Background(), &b); serr != nil { + t.Fatalf("Send %d: %v", i, serr) + } + } + <-parked + if got := testutil.ToFloat64(x.pC.WithLabelValues("destTCP", "queueFull", "error")); got < 1 { + t.Errorf("destTCP queueFull counter = %v, want >= 1", got) + } + + // The worker is parked in dial; Close reports the drain timeout and + // forces the unwind. Release the dial so the worker exits. + if cerr := dest.Close(); cerr == nil || !strings.Contains(cerr.Error(), "drain timeout") { + t.Errorf("Close with a parked dial = %v, want drain timeout", cerr) + } + close(release) +} + +// TestTCPDest_sendAfterClose pins the refund path: a Send racing Close gets +// errTCPClosed, and its buffer returns to destBytesPool (the pool stays +// warm across a restart). +func TestTCPDest_sendAfterClose(t *testing.T) { + x := newTestXTCP(t, schemeTCP+":127.0.0.1:1") + dest, err := newTCPDest(context.Background(), x) + if err != nil { + t.Fatalf("newTCPDest: %v", err) + } + if err := dest.Close(); err != nil { + t.Fatalf("Close: %v", err) + } + b := []byte("after-close\n") + if _, err := dest.Send(context.Background(), &b); !errors.Is(err, errTCPClosed) { + t.Fatalf("Send after Close = %v, want errTCPClosed", err) + } +} diff --git a/pkg/xtcp/destinations_test.go b/pkg/xtcp/destinations_test.go index b8391ddf4..822d4ff8e 100644 --- a/pkg/xtcp/destinations_test.go +++ b/pkg/xtcp/destinations_test.go @@ -62,6 +62,7 @@ func newTestXTCP(t *testing.T, dest string) *XTCP { } reg := prometheus.NewRegistry() + x.registry = reg x.pC = promauto.With(reg).NewCounterVec( prometheus.CounterOpts{Subsystem: "xtcp_test", Name: promNameCounts, Help: "test counts"}, promLabels, diff --git a/pkg/xtcp/s3queue.go b/pkg/xtcp/s3queue.go index d8dd8174e..721e2037b 100644 --- a/pkg/xtcp/s3queue.go +++ b/pkg/xtcp/s3queue.go @@ -3,8 +3,6 @@ package xtcp import ( - "sync" - "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ) @@ -12,8 +10,8 @@ import ( // s3QueueDepthDefaultCst is the envelope depth bound when s3_queue_depth is // unset (0); s3QueueDepthMaxCst is the largest the config accepts. const ( - s3QueueDepthDefaultCst = 16 - s3QueueDepthMaxCst = 4096 + s3QueueDepthDefaultCst = queueDepthDefaultCst + s3QueueDepthMaxCst = queueDepthMaxCst ) // s3MaxBufferedBytesDefaultCst is the documented default for @@ -21,102 +19,13 @@ const ( // bound, the depth bound alone). const s3MaxBufferedBytesDefaultCst = 64 * 1024 * 1024 -// Drop reasons, the reason label of the s3 drop counters. +// Drop reasons, the reason label of the s3 drop counters. The queue itself +// emits the shared spellings; these alias them for the s3 tests and docs. const ( - s3DropReasonDepth = "queue_depth" - s3DropReasonBytes = "buffered_bytes" + s3DropReasonDepth = queueDropReasonDepth + s3DropReasonBytes = queueDropReasonBytes ) -// envelopeQueue is the bounded FIFO between Send and the S3 worker. push -// never blocks: past maxDepth envelopes, or past maxBytes buffered bytes, -// it drops the oldest, so an S3 outage costs data rather than stalling the -// poller. The newest envelope is always kept, even when it alone is over -// maxBytes. notify (capacity 1) wakes the worker; it drains with pop. -type envelopeQueue struct { - mu sync.Mutex - items []envelopeBytes // ring of cap maxDepth+1 - head int - depth int - bytes int - maxDepth int - maxBytes int // 0 = no byte bound - notify chan struct{} -} - -// droppedEnvelope is an envelope push evicted and why. -type droppedEnvelope struct { - item envelopeBytes - reason string -} - -func newEnvelopeQueue(maxDepth, maxBytes int) *envelopeQueue { - if maxDepth <= 0 { - maxDepth = s3QueueDepthDefaultCst - } - return &envelopeQueue{ - items: make([]envelopeBytes, maxDepth+1), - maxDepth: maxDepth, - maxBytes: max(maxBytes, 0), - notify: make(chan struct{}, 1), - } -} - -// push appends item, evicts the oldest envelopes past either bound and -// wakes the worker. The evicted envelopes are returned for the caller to -// count and recycle outside the lock. -func (q *envelopeQueue) push(item envelopeBytes) []droppedEnvelope { - var dropped []droppedEnvelope - q.mu.Lock() - q.items[(q.head+q.depth)%len(q.items)] = item - q.depth++ - q.bytes += len(*item.buf) - for { - var reason string - switch { - case q.depth > q.maxDepth: - reason = s3DropReasonDepth - case q.maxBytes > 0 && q.bytes > q.maxBytes && q.depth > 1: - reason = s3DropReasonBytes - } - if reason == "" { - break - } - dropped = append(dropped, droppedEnvelope{item: q.popLocked(), reason: reason}) - } - q.mu.Unlock() - select { - case q.notify <- struct{}{}: - default: - } - return dropped -} - -// pop removes the oldest envelope; ok is false when the queue is empty. -func (q *envelopeQueue) pop() (item envelopeBytes, ok bool) { - q.mu.Lock() - defer q.mu.Unlock() - if q.depth == 0 { - return envelopeBytes{}, false - } - return q.popLocked(), true -} - -func (q *envelopeQueue) popLocked() envelopeBytes { - item := q.items[q.head] - q.items[q.head] = envelopeBytes{} - q.head = (q.head + 1) % len(q.items) - q.depth-- - q.bytes -= len(*item.buf) - return item -} - -// stats returns the queued envelope count and bytes. -func (q *envelopeQueue) stats() (depth, bytes int) { - q.mu.Lock() - defer q.mu.Unlock() - return q.depth, q.bytes -} - // s3QueueMetrics are the bounded queue's drop counters and buffer gauge. type s3QueueMetrics struct { dropped *prometheus.CounterVec // envelopes, by reason diff --git a/proto/xtcp_config/v1/xtcp_config.proto b/proto/xtcp_config/v1/xtcp_config.proto index 3d9c93c70..aabbf879a 100644 --- a/proto/xtcp_config/v1/xtcp_config.proto +++ b/proto/xtcp_config/v1/xtcp_config.proto @@ -1229,6 +1229,37 @@ message XtcpConfig { (buf.validate.field).required = false ]; + // ---- tcp destination delivery bounds (120-122) --------------------------- + // The queue+worker contract of the tcp destination (docs/redteam-plan.md + // rt-11-5, issues #345/#339): Send never blocks, every write carries a + // deadline, and a failed write reconnects. + + // Deadline on a single tcp-destination write (and dial), bounding a wedged + // route to the timeout instead of the TCP retransmit window (~15.4 min at + // the prod-default tcp_retries2=15). 0 = 30s. + google.protobuf.Duration tcp_write_timeout = 120 [ + (buf.validate.field).required = false, + (buf.validate.field).duration = { + gte: { seconds: 1 } + lte: { seconds: 3600 } + }]; + + // Envelopes queued between the poller and the tcp worker. Past this depth + // the oldest is dropped (xtcp_tcp_dropped_total{reason="queue_depth"}), so + // a wedged sink never blocks polling. 0 = 16. + uint32 tcp_queue_depth = 121 [ + (buf.validate.field).required = false, + (buf.validate.field).uint32 = { + lte: 4096 + }]; + + // Marshaled envelope bytes the tcp queue may hold. Past this the oldest + // envelope is dropped (reason="buffered_bytes"); the newest is always + // kept. 0 = no byte bound (the depth bound alone). + uint64 tcp_max_buffered_bytes = 122 [ + (buf.validate.field).required = false + ]; + // ---- identity & labels stamped on every record (130-149) ----------------- // The operator strings below reject control characters (C0, DEL, C1). diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 1f1a5778b..c2abf35b9 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -41,6 +41,11 @@ # so the sink is a separate sibling # endpoint — rt-11-5's L2-kill shape that # leaves the gateway path clean) +# XTCP2_TCP_WRITE_TIMEOUT |"" the daemon's -tcpWriteTimeout: the +# per-write deadline that bounds a wedged +# delivery route (#345). "" = the daemon's +# own 30s default; a short duration lets a +# scenario watch the deadline fire # # Run everything through `nix run .#redteam-*` from the repo root; that pins # VAGRANT_CWD/VAGRANT_HOME to vagrant/.gen so no state leaks into ~/.vagrant.d. @@ -62,6 +67,7 @@ CPUS = ENV.fetch("XTCP2_CPUS", "0") PPROF = ENV.fetch("XTCP2_PPROF", "0") MAX_RECORDS = ENV.fetch("XTCP2_MAX_RECORDS", "0") SINK_IP = ENV.fetch("XTCP2_SINK_IP", "") +TCP_WRITE_TIMEOUT = ENV.fetch("XTCP2_TCP_WRITE_TIMEOUT", "") Vagrant.configure("2") do |config| config.vm.box = BOX @@ -102,7 +108,7 @@ Vagrant.configure("2") do |config| victim.vm.provision "shell", path: "provision/common.sh" victim.vm.provision "shell", path: "provision/victim.sh", - args: [MODE, AUTH, CAPS, ATTACKER, DEST, ENRICH, NOFILE, CPUS, PPROF, MAX_RECORDS, SINK_IP] + args: [MODE, AUTH, CAPS, ATTACKER, DEST, ENRICH, NOFILE, CPUS, PPROF, MAX_RECORDS, SINK_IP, TCP_WRITE_TIMEOUT] end config.vm.define "attacker" do |attacker| diff --git a/vagrant/lib/matrix.sh b/vagrant/lib/matrix.sh index 9821a9653..58c9acc43 100644 --- a/vagrant/lib/matrix.sh +++ b/vagrant/lib/matrix.sh @@ -36,10 +36,11 @@ xtcp2_matrix_defaults() { : "${XTCP2_PPROF:=0}" : "${XTCP2_MAX_RECORDS:=0}" : "${XTCP2_SINK_IP:=}" + : "${XTCP2_TCP_WRITE_TIMEOUT:=}" # The Vagrantfile reads these from ITS environment (a child of this shell), # so they must be exported — a scenario-level default (`: "${XTCP2_AUTH:=raw}"`) # without export reaches the provisioner as the off row. - export XTCP2_MODE XTCP2_AUTH XTCP2_CAPS XTCP2_ATTACKER XTCP2_DEST XTCP2_ENRICH XTCP2_NOFILE XTCP2_CPUS XTCP2_PPROF XTCP2_MAX_RECORDS XTCP2_SINK_IP + export XTCP2_MODE XTCP2_AUTH XTCP2_CAPS XTCP2_ATTACKER XTCP2_DEST XTCP2_ENRICH XTCP2_NOFILE XTCP2_CPUS XTCP2_PPROF XTCP2_MAX_RECORDS XTCP2_SINK_IP XTCP2_TCP_WRITE_TIMEOUT case "$XTCP2_MODE" in host | bridge) ;; @@ -88,7 +89,7 @@ xtcp2_matrix_defaults() { *) xtcp2_die "XTCP2_EXPECT='$XTCP2_EXPECT' (want BLOCKED|MITIGATED|CONFIRMED|NA)" ;; esac - echo "rt: matrix MODE=$XTCP2_MODE AUTH=$XTCP2_AUTH CAPS=$XTCP2_CAPS ATTACKER=$XTCP2_ATTACKER DEST=$XTCP2_DEST ENRICH=$XTCP2_ENRICH NOFILE=$XTCP2_NOFILE CPUS=$XTCP2_CPUS PPROF=$XTCP2_PPROF MAX_RECORDS=$XTCP2_MAX_RECORDS SINK_IP=$XTCP2_SINK_IP EXPECT=$XTCP2_EXPECT" + echo "rt: matrix MODE=$XTCP2_MODE AUTH=$XTCP2_AUTH CAPS=$XTCP2_CAPS ATTACKER=$XTCP2_ATTACKER DEST=$XTCP2_DEST ENRICH=$XTCP2_ENRICH NOFILE=$XTCP2_NOFILE CPUS=$XTCP2_CPUS PPROF=$XTCP2_PPROF MAX_RECORDS=$XTCP2_MAX_RECORDS SINK_IP=$XTCP2_SINK_IP TCP_WRITE_TIMEOUT=$XTCP2_TCP_WRITE_TIMEOUT EXPECT=$XTCP2_EXPECT" } # The co-tenant vantage: the docker0 gateway in the victim VM's host netns. diff --git a/vagrant/provision/common.sh b/vagrant/provision/common.sh index 8fe9ef430..00c84c905 100644 --- a/vagrant/provision/common.sh +++ b/vagrant/provision/common.sh @@ -10,6 +10,21 @@ set -euo pipefail export DEBIAN_FRONTEND=noninteractive +# The cloud image's unattended-upgrades can grab the dpkg frontend lock for +# minutes at a time, and the matrix re-provisions the same VMs for hours — +# rt-11-3..rt-11-5 all failed on it in one run (evidence 20261127T061142). +# Kill the timers, then wait out any in-flight run BEFORE the first apt +# (the docker block below needs the lock too on a fresh VM). +systemctl stop apt-daily.timer apt-daily-upgrade.timer unattended-upgrades 2>/dev/null || true +systemctl mask apt-daily.timer apt-daily-upgrade.timer unattended-upgrades 2>/dev/null || true +for _ in $(seq 1 120); do # bounded: 10 min — an upgrade can run long + if ! fuser /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock \ + /var/lib/apt/lists/lock /var/cache/apt/archives/lock >/dev/null 2>&1; then + break + fi + sleep 5 +done + if ! command -v docker >/dev/null 2>&1; then apt-get update -qq apt-get install -y -qq ca-certificates curl gnupg diff --git a/vagrant/provision/victim.sh b/vagrant/provision/victim.sh index 8cffd834f..330b68a24 100644 --- a/vagrant/provision/victim.sh +++ b/vagrant/provision/victim.sh @@ -30,6 +30,7 @@ CPUS="${8:-0}" PPROF="${9:-0}" MAX_RECORDS="${10:-0}" SINK_IP="${11:-}" +TCP_WRITE_TIMEOUT="${12:-}" die() { echo "victim.sh: $*" >&2 @@ -82,6 +83,10 @@ case "$SINK_IP" in *.*.*.*) ;; *) die "invalid XTCP2_SINK_IP '$SINK_IP' (want an IPv4)" ;; esac +case "$TCP_WRITE_TIMEOUT" in + "" | 0 | 0s) ;; + *[!0-9a-z.]*) die "invalid XTCP2_TCP_WRITE_TIMEOUT '$TCP_WRITE_TIMEOUT' (want a Go duration like 5s or 1m, or empty)" ;; +esac HARNESS_DIR=/home/vagrant/xtcp2-redteam DAEMON_IMAGE=xtcp2:latest @@ -378,10 +383,18 @@ fi # (over the budget, namespaces above their fair share stop asking for # TIME_WAIT/SYN_RECV, then are port-sampled: xtcp_poll_degraded_total). MAX_RECORDS_ARGS=() -if [ "$MAX_RECORDS" != 0 ]; then +if [ "$MAX_RECORDS" != 0 ] && [ -n "$MAX_RECORDS" ]; then MAX_RECORDS_ARGS=(-maxRecordsPerPoll "$MAX_RECORDS") fi +# TCP_WRITE_TIMEOUT: empty = the daemon's own 30s default; a duration pins +# the per-write deadline so rt-11-5's fixed variant can watch the deadline +# bound a wedged route (#345). +TCP_WRITE_TIMEOUT_ARGS=() +if [ -n "$TCP_WRITE_TIMEOUT" ] && [ "$TCP_WRITE_TIMEOUT" != 0 ] && [ "$TCP_WRITE_TIMEOUT" != 0s ]; then + TCP_WRITE_TIMEOUT_ARGS=(-tcpWriteTimeout "$TCP_WRITE_TIMEOUT") +fi + docker run -d --name rt-xtcp2 \ "${NET_ARGS[@]}" \ "${PPROF_PUBLISH[@]}" \ @@ -402,6 +415,7 @@ docker run -d --name rt-xtcp2 \ -frequency 2s \ -timeout 1s \ "${MAX_RECORDS_ARGS[@]}" \ + "${TCP_WRITE_TIMEOUT_ARGS[@]}" \ -hostname rt-victim # --- RT-11 work population ------------------------------------------------- diff --git a/vagrant/redteam/findings.md b/vagrant/redteam/findings.md index d0d8daf89..1c492b929 100644 --- a/vagrant/redteam/findings.md +++ b/vagrant/redteam/findings.md @@ -64,6 +64,8 @@ that gets fixed flips its `EXPECT` in the same PR as the fix | rt-11-5 | 2026-11-26 | bridge+raw+plain, SINK_IP=172.17.99.2 | CONFIRMED | **S2** | `20261126T014816-1935fd894-1334095` | **The delivery-path stall freezes COLLECTION.** A privileged co-tenant (CAP_NET_RAW, sibling on the docker bridge; a dedicated docker0 alias keeps the gateway path clean so the API stays 200 — poisoning 172.17.0.1 itself takes the docker-proxy replies down with it, measured) ARP-blackholed the sink with a 200 ms gratuitous-reply loop (existing neighbor entries flip with default arp_accept). Timeline: delivery dies instantly (0 lines/6 s); the Writes keep succeeding locally while SO_SNDBUF absorbs ~10-30 s of envelopes; the buffer fills → the Write blocks → **the whole poller freezes** (polls frozen 14 s at tcp_retries2=8; **~15.4 min at the prod default retries2=15**) with ZERO error counters and scrape 200 — fully silent (the daemon's own metrics cannot see it). De-poison mid-window: the buffered envelopes drain, the catcher catches up (1667 lines/6 s), zero error counters, no records lost — the blind is latency, not loss. The window closed (retries2=3): counters light up only then (the row's visibility premise holds, after the gap), polls resume, and delivery is permanently dead until a daemon restart (no reconnect, #339). **Fix filed (#345)**: SetWriteDeadline + decouple the flush from the poll goroutine. | | rt-4-7 | 2026-11-26 | bridge+raw+plain, tcp then s3 halves | BLOCKED | S3 (finding) | `20261126T020602-1935fd894-1553235` | The split verdict, both halves measured. **s3 (the queue sink — the plan's premise)**: Garage down for 45 s — RSS slope 70 KiB/s (queue depth 16 / 64 MiB, oldest-first eviction), the outage VISIBLE and COUNTED (`destS3Parquet/upload/error=1` after the 10-attempt backoff, `s3_dropped_total=8`), and minio dials per request so the daemon RECOVERS on endpoint return (objects 1270 → 2375). The plan's expectation holds. **tcp (the catcher)**: the Write errors immediately on the dead conn (FIN/RST — no stall, unlike rt-11-5), the counters light up, polling continues — but the blind is PERMANENT: the catcher restart changes nothing (0 lines/6 s with the catcher back; tcpDest never reconnects, #339); only a daemon restart re-dials (measured). The permanent blind is the #339 evidence, asserted in-row. | | rt-11-4 | 2026-11-26 | bridge+raw+plain, MAX_RECORDS 0 then 50000 | BLOCKED | — | `20261126T023803-1935fd894-1712076` | The poll-budget thief loses on both valves. sockfill packed the attacker netns with **300,008 sockets** (150K loopback pairs, `-perPort 20000` — the 50K default exceeds the container's ephemeral range): victim coverage lag **0 s** (the dumps run PARALLEL per netns — one netlink socket + netlinkers each — the thief only delays its own records), `PollTimeout` fired every cycle (the 1 s wall-clock valve; pollToDone p99 2.2 s), polls kept cadence, RSS 29→31 MiB, daemon alive. At the walkable budget (50000) the gate engaged exactly as designed: `xtcp_poll_degraded_total{level="sample"}` — the thief port-shard-sampled — while the victims kept full coverage (lag 0 s). The bomb's remaining cost is the telemetry amplifier (#342) at scale: **211,244 lines/6 s** at the catcher ≈ 100× baseline — the attack's own sockets are reported. | +| rt-11-5-fix | 2026-11-26 | bridge+raw+plain, SINK_IP=172.17.99.2, **TCP_WRITE_TIMEOUT=5s** | **MITIGATED** | — | `20261126T111738-209ab068a-1688938` | **The #345/#339 fix, measured with the same attack that pinned the bug.** The tcp destination is now a bounded queue + worker: `Send` never blocks the poller, every write and dial carries the `tcp_write_timeout` deadline, a failed write reconnects under full-jitter backoff, and past 3 attempts an envelope is dropped and counted. Same poison (200 ms gratuitous-ARP loop on the dedicated sink alias): polls keep issuing through the stall (25→47 over 32 s — the pre-fix poller froze for the retransmit window, ~15.4 min at prod defaults), the blind is VISIBLE and COUNTED while dark (Write/error=9, Dial/error=8, `xtcp_tcp_dropped_total=3`, scrape 200 — pre-fix: zero counters), de-poison heals delivery with NO daemon restart (reconnects=1, 2498 lines/6 s — pre-fix: permanently dead). Cycle 2 (a REACHABLE neighbor entry ignores gratuitous replies until it ages STALE ~30 s — the wait is asserted, not assumed) repeats the arc: Write/error 10→14, polls 77→82, heals again at 2500 lines/6 s. **A second dark-window shape, observed in the matrix regression** (evidence `20261127T065504-195d45c15-839055`, 16/18 — the two misses were the scenario pinning shape A, not a product fault): the write deadline closes the conn, a re-dial falls back to broadcast ARP, the REAL sink answers, and delivery **self-heals mid-poison** (1262 lines/6 s while the attack continues — a REACHABLE entry then ignores the poison's gratuitous replies ~30 s; drops=0, loss bounded to the reconnect window). Both shapes are now asserted: stall-sustained (dark, drops counted) or healed-through (errors counted, no restart) — flowing with zero errors is the only failure. Residual, by design: delivery still stalls while the route is blackholed — bounded by the deadline, visible in the counters. | +| rt-4-7-fix | 2026-11-26 | bridge+raw+plain, tcp then s3 halves | BLOCKED | — | `20261126T110001-209ab068a-1548426` | **The rt-4-7 re-run on the fixed product** (the pre-fix record: `20261126T020602-1935fd894-1553235`). tcp half: the outage is counted in the WORKER's counters (`destTCP` Write/error=24, Dial/error=25, `xtcp_tcp_dropped_total=9`), polls continue, and — the #339 fix — **the catcher restart heals delivery with no daemon restart** (reconnects=1, 2482 lines/6 s after return; pre-fix: 0 lines/6 s until a daemon restart). s3 half unchanged (RSS slope −599 KiB/s, `destS3Parquet/upload/error=1` after the retry ladder — now a bounded wait, the fixed 45 s read raced it once — `s3_dropped_total=10`, objects resume on Garage return 1295→2518). Both halves hold the plan's expectation. | - Severity scale: docs/redteam-plan.md §severity. - Rows are appended, never edited, so the log doubles as the program's diff --git a/vagrant/scenarios/rt-11-5-l2-delivery-kill.sh b/vagrant/scenarios/rt-11-5-l2-delivery-kill.sh index 5f02573bf..1e451d15e 100644 --- a/vagrant/scenarios/rt-11-5-l2-delivery-kill.sh +++ b/vagrant/scenarios/rt-11-5-l2-delivery-kill.sh @@ -6,29 +6,24 @@ # same bridge as the daemon sends gratuitous ARP replies claiming the SINK # endpoint's IP resolves to a poison MAC nobody owns. The daemon's # established TCP to the sink blackholes: no RST, no FIN — the kernel just -# retransmits. The premise: "the daemon looks healthy while delivering -# nothing"; the guard: "delivery-failure counters make the blind visible". +# retransmits. # -# THE MEASURED SHAPE (probe, 2026-11-25) is stronger, and the scenario runs -# it in two phases: +# PRE-FIX (evidence 20261126T014816, findings.md row rt-11-5, #345/#339): +# the delivery Write ran ON the poll goroutine with no deadline, so once +# SO_SNDBUF filled the whole POLLER froze for the TCP retransmit window +# (~15.4 min at the prod default retries2=15) with zero error counters and +# scrape 200 — collection, not just delivery, silently dead — and the +# window's close left delivery permanently blind (no reconnect). # -# phase 1 — THE FREEZE (retries2=8, ~100s window): delivery dies at the -# poison moment (segments never land), but the Write keeps SUCCEEDING -# locally while SO_SNDBUF absorbs envelopes; once the buffer fills, the -# Write blocks — and flushEnvelope runs on the POLL goroutine -# (pkg/xtcp/poller.go:150 → dest.Send → conn.Write, no write deadline), -# so the whole poller freezes for the retransmit window: no polls, no -# error counters, nothing at the catcher, metrics 200. FULLY silent. At -# the prod default (tcp_retries2=15) the freeze is ~15.4 min. De-poison -# mid-window unblocks the Write and the buffered envelopes drain — the -# catcher catches up with ZERO error counters (measured: 3354 lines/6s) -# — no records lost, the blind is only visible as LATENCY. -# -# phase 2 — THE PERMANENT BLIND (retries2=3, ~1.4s window): the -# retransmit window closes fast; the conn errors, envelopeFlush/error + -# destTCP/Write/error light up (the row's visibility premise holds — but -# only AFTER the silent window), polls RESUME, and delivery stays dead -# forever: tcpDest never reconnects (the pinned finding, #339). +# POST-FIX (this run, EXPECT=MITIGATED, XTCP2_TCP_WRITE_TIMEOUT=5s): the +# tcp destination queues to a bounded worker (Send never blocks the +# poller), every write and dial carries the deadline, and a failed write +# reconnects under full-jitter backoff. The same poison now costs: +# - polls CONTINUE through the stall (the freeze is gone — the core fix), +# - delivery stalls but the blind is VISIBLE and COUNTED (destTCP +# Write/Dial errors, xtcp_tcp_dropped_total) instead of silent, +# - de-poison heals delivery with NO daemon restart (the reconnect, +# #339's fix) — measured twice, two poison cycles. # # Deploy shape: the sink gets its own docker0 alias (XTCP2_SINK_IP # 172.17.99.2 — far from docker's sequential IPAM) so poisoning it leaves @@ -41,7 +36,8 @@ set -euo pipefail : "${XTCP2_ATTACKER:=plain}" : "${XTCP2_PPROF:=0}" : "${XTCP2_SINK_IP:=172.17.99.2}" -XTCP2_EXPECT="${XTCP2_EXPECT:-CONFIRMED}" +: "${XTCP2_TCP_WRITE_TIMEOUT:=5s}" +XTCP2_EXPECT="${XTCP2_EXPECT:-MITIGATED}" # shellcheck source=/dev/null source "$(dirname "${BASH_SOURCE[0]}")/../lib/matrix.sh" @@ -92,6 +88,10 @@ catcher_delta_6s() { } polls_issued() { mval 'pollRequestCh'; } +tcp_write_err() { mval 'function="destTCP",type="error",variable="Write"'; } +tcp_dial_err() { mval 'function="destTCP",type="error",variable="Dial"'; } +tcp_dropped() { mval 'xtcp_tcp_dropped_total{'; } +tcp_reconnects() { mval 'function="destTCP",type="count",variable="Reconnect"'; } error_counters() { vm_exec victim "curl -s -m 6 -H 'Authorization: Bearer $RT_READ_TOKEN' http://127.0.0.1:9088/metrics | grep -E 'error.*envelopeFlush|destTCP.*error' | grep -v '^#'" || true @@ -105,7 +105,6 @@ ok "baseline: catcher=$B_DELTA lines/6s polls=$B_POLLS scrape=$(scrape_code)" # --- the killer ------------------------------------------------------------------- -vm_exec_root victim "sysctl -w net.ipv4.tcp_retries2=8 >/dev/null; nsenter -t $DPID -n sysctl -w net.ipv4.tcp_retries2=8" vm_exec victim "sudo docker rm -f rt-l2killer >/dev/null 2>&1; sudo docker run -d --name rt-l2killer --cap-add NET_RAW --network bridge ubuntu:24.04 sleep infinity" >/dev/null vm_exec victim "sudo docker cp /opt/xtcp2-redteam/bin/arppoison rt-l2killer:/tmp/arppoison" >/dev/null vm_exec victim "sudo docker exec rt-l2killer sh -c 'nohup /tmp/arppoison -iface eth0 -ip $SINK -interval 200ms > /tmp/ap.log 2>&1 &'" >/dev/null @@ -124,98 +123,141 @@ else not_ok "the gateway entry was poisoned too — see evidence" fi -# --- phase 1: the freeze ----------------------------------------------------------- +# --- cycle 1: the poison hold -------------------------------------------------------- +# With the 5s write deadline the stall unwinds in bounded steps: the in-flight +# write errors at the deadline, the reconnect dials time out at the same bound, +# and each envelope burns its attempt budget and is dropped. What must NOT +# happen (the pre-fix freeze): the poller stopping. +# +# The dark window has TWO legitimate shapes (a neighbor-state race, not a +# product fork — evidence 20261127T065504 caught shape B while +# 20261126T111738 caught shape A): +# shape A (stall sustained): the poisoned entry's unicast probes fail, the +# broadcast re-resolution loses to the dials' own 5s deadline, the +# catcher goes dark and the envelope budgets burn (drops counted). +# shape B (healed-through): the write deadline closes the conn, a re-dial +# falls back to broadcast ARP, the REAL sink answers, and delivery +# resumes while the attack continues — a REACHABLE entry then ignores +# the poison's gratuitous replies for ~30s. The stall self-heals with no +# restart; drops may be 0 (loss bounded to the reconnect window). +# Either way Write/Dial errors MUST rise (the blind is visible) and the +# poller MUST keep issuing. "Flowing with zero errors" = the poison failed. + +P0="$(polls_issued)" +sleep 20 # the deadline fires (~5s), the first dial windows close (~5s each) DELTA="$(catcher_delta_6s)" -if [ "$DELTA" -le 10 ]; then - ok "phase 1: the catcher is dark within a cycle of the poison ($DELTA lines/6s) — the daemon is delivering nothing" +W1_ERR="$(tcp_write_err)" +D1_ERR="$(tcp_dial_err)" +STALLED=0 +if [ "${W1_ERR:-0}" -lt 1 ] && [ "${D1_ERR:-0}" -lt 1 ]; then + not_ok "cycle 1: zero Write/Dial errors ($DELTA lines/6s) — the poison failed or the stall went silent; see evidence" +elif [ "$DELTA" -le 10 ]; then + STALLED=1 + ok "cycle 1: the catcher is dark within a cycle of the poison ($DELTA lines/6s) — delivery stalls (the premise's blind)" else - not_ok "phase 1: the catcher kept flowing ($DELTA lines/6s) — the poison failed; see evidence" + ok "cycle 1: the stall self-healed mid-poison ($DELTA lines/6s; Write/error=$W1_ERR, Dial/error=$D1_ERR — the deadline closed the conn and a re-dial's broadcast ARP beat the poison; no restart)" fi - code="$(scrape_code)" if [ "${code:-000}" = 200 ]; then - ok "phase 1: the daemon LOOKS healthy while delivering nothing (scrape 200 — the premise)" + ok "cycle 1: the daemon keeps answering (scrape 200)" else - not_ok "phase 1: the scrape degraded (code=${code:-000}) — see evidence" + not_ok "cycle 1: the scrape degraded (code=${code:-000}) — see evidence" fi -# The freeze: after SO_SNDBUF fills (~10-30s of envelopes), the Write blocks -# and the poller stops issuing polls. Two samples 8s apart, equal = frozen. -frozen() { - local a b - a="$(polls_issued)" - sleep 8 - b="$(polls_issued)" - [ "$a" = "$b" ] -} -wait_for 150 "the poller freezes in the blocked Write (polls stop issuing; prod default would freeze ~15.4 min)" frozen -F1_POLLS="$(polls_issued)" -sleep 6 -F2_POLLS="$(polls_issued)" -if [ "$F1_POLLS" = "$F2_POLLS" ]; then - ok "phase 1: THE FREEZE — the poller is stuck in the destination Write (polls=$F1_POLLS frozen over 14s: no polls, no counters, metrics 200 — fully silent; the delivery Write has no deadline and runs on the poll goroutine)" +sleep 12 # more envelope budgets burn; polls sampled across the whole window +P1="$(polls_issued)" +if [ "$P1" -gt "$P0" ]; then + ok "cycle 1: THE FREEZE IS GONE — polls kept issuing through the stall (polls $P0->$P1 over 32s; the flush no longer runs on the poll goroutine — the #345 fix)" else - not_ok "phase 1: polls kept issuing during the hold ($F1_POLLS -> $F2_POLLS) — no freeze; see evidence" + not_ok "cycle 1: the poller froze during the stall ($P0->$P1) — the fix regressed; see evidence" fi -if [ -z "$(error_counters)" ]; then - ok "phase 1: zero error counters while dark and frozen — the blind is NOT detectable from the daemon's own metrics during the silent window" + +if [ "${W1_ERR:-0}" -ge 1 ] || [ "${D1_ERR:-0}" -ge 1 ]; then + ok "cycle 1: the blind is VISIBLE while dark (Write/error=$W1_ERR, Dial/error=$D1_ERR — the deadline turns the silent window into counted errors)" +else + not_ok "cycle 1: no Write/Dial errors during the stall — the blind is still silent; see evidence" +fi +DROP1="$(tcp_dropped)" +if [ "$STALLED" = 1 ] && [ "${DROP1:-0}" -ge 1 ]; then + ok "cycle 1: the stall is COUNTED (xtcp_tcp_dropped_total=$DROP1 — bounded, visible loss, not silent latency)" +elif [ "$STALLED" = 1 ] && [ "$(catcher_delta_6s)" -gt 10 ]; then + ok "cycle 1: the stall healed late in the window (no drops — the re-dial won the race; loss bounded to the reconnect window, not a queue)" +elif [ "$STALLED" = 1 ]; then + not_ok "cycle 1: dark through the whole window with no drops counted — see evidence" else - not_ok "phase 1: error counters fired without the window closing — see evidence" + ok "cycle 1: no envelope burned its full budget ($DROP1 drops — the re-dial won the race; loss bounded to the reconnect window, not a queue)" fi -# --- de-poison mid-window: the graceful recovery ------------------------------------ +# --- cycle 1 release: the reconnect heals delivery ------------------------------------- vm_exec victim "sudo docker exec rt-l2killer pkill -f arppoison" >/dev/null 2>&1 || true vm_exec_root victim "nsenter -t $DPID -n ip neigh del $SINK dev eth0" >/dev/null 2>&1 || true -sleep 8 + +resume() { + [ "$(catcher_delta_6s)" -gt 10 ] +} +wait_for 90 "delivery resumes after de-poison (the next dial lands; NO daemon restart — the #339 fix)" resume CATCHUP="$(catcher_delta_6s)" -if [ "$CATCHUP" -gt 0 ]; then - ok "de-poison mid-window: the blocked Write completes, the buffered envelopes drain, the catcher catches up ($CATCHUP lines/6s) — no error counters, no records lost (the blind was LATENCY, not loss)" -else - not_ok "de-poison mid-window: the catcher did not catch up — see evidence" -fi -if [ -z "$(error_counters)" ]; then - ok "de-poison mid-window: zero error counters (the recovery is silent too)" +R1="$(tcp_reconnects)" +if [ "$CATCHUP" -gt 10 ]; then + ok "cycle 1: de-poison heals delivery with NO restart (catcher $CATCHUP lines/6s; reconnects=$R1 — the daemon re-dials on its own)" else - not_ok "de-poison mid-window: unexpected error counters — see evidence" + not_ok "cycle 1: the catcher did not resume after de-poison — see evidence" fi -# --- phase 2: the window closes — the permanent blind -------------------------------- +# --- cycle 2: the same poison again — the reconnect is not one-shot -------------------- -vm_exec_root victim "nsenter -t $DPID -n sysctl -w net.ipv4.tcp_retries2=3" >/dev/null vm_exec victim "sudo docker exec rt-l2killer sh -c 'nohup /tmp/arppoison -iface eth0 -ip $SINK -interval 200ms > /tmp/ap2.log 2>&1 &'" >/dev/null -sleep 12 # the retransmit window (retries2=3) closes, the conn errors, flushes error fast -E_BEFORE="$(mval 'error.*envelopeFlush')" -sleep 6 -E_AFTER="$(mval 'error.*envelopeFlush')" -W_ERR="$(mval 'destTCP.*error')" -P2_POLLS="$(polls_issued)" -echo "rt-11-5: phase 2: envelopeFlush/error $E_BEFORE->$E_AFTER destTCP/Write/error=$W_ERR polls=$P2_POLLS" -if [ "${E_AFTER:-0}" -gt "${E_BEFORE:-0}" ] && [ "${W_ERR:-0}" -gt 0 ]; then - ok "phase 2: after the window closes, the delivery-error counters light up (envelopeFlush/error $E_BEFORE->$E_AFTER) — the blind becomes VISIBLE (the row's premise)" + +# The cycle-1 de-poison re-dialed, so the sink's neighbor entry is REACHABLE +# again — and a REACHABLE entry ignores gratuitous replies until it ages to +# STALE (~30s at base_reachable_time; cycle 1's entry was already stale). +# Wait for the flip rather than guessing the age. +neigh_flipped() { + vm_exec_root victim "nsenter -t $DPID -n ip neigh show $SINK" | grep -q "02:00:00:00:00:ff" +} +wait_for 90 "the second poison flips the freshly re-dialed neighbor entry" neigh_flipped +W2A="$(tcp_write_err)" +sleep 18 +DARK2="$(catcher_delta_6s)" +W2B="$(tcp_write_err)" +P2A="$(polls_issued)" +sleep 8 +P2B="$(polls_issued)" +echo "rt-11-5: cycle 2: catcher=$DARK2 lines/6s Write/error=$W2A->$W2B polls=$P2A->$P2B" +# The same two shapes as cycle 1 (see the cycle-1 comment): dark, or +# healed-through mid-poison. Either way Write errors MUST rise — a flipped +# entry makes the in-flight write error at the deadline within ~5s, so +# "no new errors" means the stall went silent (the regression shape). +if [ "${W2B:-0}" -gt "${W2A:-0}" ] && [ "$DARK2" -le 10 ]; then + ok "cycle 2: the same poison stalls delivery again and errors again (Write/error $W2A->$W2B, catcher $DARK2 lines/6s)" +elif [ "${W2B:-0}" -gt "${W2A:-0}" ]; then + ok "cycle 2: the second stall errors and self-heals again (Write/error $W2A->$W2B, catcher $DARK2 lines/6s — the broadcast-ARP race, cycle-1 shape B)" else - not_ok "phase 2: no delivery-error counters after the window closed — see evidence" + not_ok "cycle 2: no new Write errors during the second stall — see evidence" fi -sleep 6 -P3_POLLS="$(polls_issued)" -if [ "$P3_POLLS" -gt "$P2_POLLS" ]; then - ok "phase 2: polls resumed after the error (the freeze is once-per-blackhole; the daemon keeps polling with delivery dead)" +if [ "$P2B" -gt "$P2A" ]; then + ok "cycle 2: polls continue through the second stall too ($P2A->$P2B)" else - not_ok "phase 2: polls stayed frozen after the error — see evidence" + not_ok "cycle 2: the poller froze on the second stall — see evidence" fi -DELTA="$(catcher_delta_6s)" -if [ "$DELTA" -le 10 ]; then - ok "phase 2: THE PERMANENT BLIND — delivery stays dead (catcher $DELTA lines/6s; tcpDest never reconnects, #339) until a daemon restart" + +vm_exec victim "sudo docker exec rt-l2killer pkill -f arppoison" >/dev/null 2>&1 || true +vm_exec_root victim "nsenter -t $DPID -n ip neigh del $SINK dev eth0" >/dev/null 2>&1 || true +wait_for 90 "delivery resumes after the second de-poison" resume +CATCHUP2="$(catcher_delta_6s)" +if [ "$CATCHUP2" -gt 10 ]; then + ok "cycle 2: de-poison heals delivery again ($CATCHUP2 lines/6s — the reconnect is repeatable, not a one-shot)" else - not_ok "phase 2: the catcher recovered on its own (no reconnect exists — reconcile this) — see evidence" + not_ok "cycle 2: the catcher did not resume after the second de-poison — see evidence" fi victim_alive_check() { vm_exec victim "sudo docker inspect rt-xtcp2 --format '{{.State.Running}}' | grep -q true" } if victim_alive_check; then - ok "the daemon process survives the whole attack (both phases)" + ok "the daemon survives the whole attack (both cycles)" else not_ok "the daemon died — see evidence" fi @@ -223,14 +265,13 @@ fi # --- teardown ------------------------------------------------------------------------ vm_exec victim "sudo docker rm -f rt-l2killer" >/dev/null -vm_exec_root victim "sysctl -w net.ipv4.tcp_retries2=15 >/dev/null; nsenter -t $DPID -n sysctl -w net.ipv4.tcp_retries2=15" >/dev/null 2>&1 || true # --- verdict ------------------------------------------------------------------------- -# CONFIRMED, stronger than the premise: the L2 kill does not just blind -# delivery while the daemon looks healthy — it freezes COLLECTION for the -# whole retransmit window with zero error signal (the Write has no deadline -# and runs on the poll goroutine), and the window's close leaves delivery -# permanently dead (no reconnect). Product findings pinned: a write deadline -# + an async flush queue. -finish rt-11-5 CONFIRMED +# MITIGATED (#345 + #339 landed with this expectation): the L2 kill still +# stalls delivery (that much is physics — the route is blackholed), but the +# poller keeps polling through the stall, the blind is visible and counted +# (Write/Dial errors, tcp_dropped_total), and de-poison heals delivery with +# no daemon restart. The pre-fix freeze and permanent blind are recorded in +# findings.md row rt-11-5 (evidence 20261126T014816). +finish rt-11-5 MITIGATED diff --git a/vagrant/scenarios/rt-4-7-sink-outage.sh b/vagrant/scenarios/rt-4-7-sink-outage.sh index dbd423613..247049f29 100644 --- a/vagrant/scenarios/rt-4-7-sink-outage.sh +++ b/vagrant/scenarios/rt-4-7-sink-outage.sh @@ -8,11 +8,12 @@ # bounded while dest is down; recovers on broker return; no unbounded # queue". The premortem audit split the verdict by destination: # -# half 1 — tcp (the catcher): the daemon's Write errors immediately on -# the dead conn (FIN/RST — no retransmit stall), the counters light up, -# polling continues, and the blind is PERMANENT: tcpDest never reconnects -# (#339), so a catcher restart changes nothing — delivery stays dead -# until the daemon itself restarts. CONFIRMED (the pinned finding). +# half 1 — tcp (the catcher): the Write errors on the dead conn +# (FIN/RST — fast, no retransmit stall), the destTCP Write/Dial counters +# and xtcp_tcp_dropped_total light up, polling continues, and — post-#339 +# — the worker RECONNECTS: a catcher restart heals delivery with no +# daemon restart. The pre-fix permanent blind is recorded in findings.md +# (row rt-4-7, evidence 20261126T020602). # # half 2 — s3 (Garage): the queue bounds the outage (depth 16 / # 64 MiB, oldest-first eviction, s3_dropped_total), uploads retry with @@ -54,6 +55,11 @@ mval() { # mval — one xtcp_counts series' value vm_exec victim "curl -s -m 6 -H 'Authorization: Bearer $RT_READ_TOKEN' http://127.0.0.1:9088/metrics | grep '$1' | grep -v '^#' | grep -oE '[0-9.e+]+\$' | head -1" || echo 0 } +tcp_write_err() { mval 'function="destTCP",type="error",variable="Write"'; } +tcp_dial_err() { mval 'function="destTCP",type="error",variable="Dial"'; } +tcp_dropped() { mval 'xtcp_tcp_dropped_total{'; } +tcp_reconnects() { mval 'function="destTCP",type="count",variable="Reconnect"'; } + daemon_rss_kb() { vm_exec victim "sudo docker stats --no-stream --format '{{.MemUsage}}' rt-xtcp2" \ | grep -oE '^[0-9.]+' | awk '{printf "%d", $1 * 1024}' @@ -70,7 +76,6 @@ victim_still_reporting_tap xtcp2_victim_read_token B_POLLS="$(mval 'pollRequestCh')" -B_ERR="$(mval 'error.*envelopeFlush')" echo "rt-4-7: half 1 — killing the catcher" vm_exec_root victim "systemctl stop xtcp2-catcher" @@ -83,20 +88,21 @@ DARK_DELTA=0 b="$(catcher_lines)" DARK_DELTA=$((b - a)) } -H1_ERR="$(mval 'error.*envelopeFlush')" -H1_WERR="$(mval 'destTCP.*error')" +H1_WERR="$(tcp_write_err)" +H1_DERR="$(tcp_dial_err)" +H1_DROP="$(tcp_dropped)" H1_POLLS="$(mval 'pollRequestCh')" -echo "rt-4-7: catcher down: delta=$DARK_DELTA envelopeFlush/error=$B_ERR->$H1_ERR destTCP/Write/error=$H1_WERR polls=$B_POLLS->$H1_POLLS" +echo "rt-4-7: catcher down: delta=$DARK_DELTA Write/error=$H1_WERR Dial/error=$H1_DERR dropped=$H1_DROP polls=$B_POLLS->$H1_POLLS" if [ "$DARK_DELTA" -le 10 ]; then ok "half 1: the catcher is dark while the sink is down" else not_ok "half 1: the catcher kept flowing with the sink down — see evidence" fi -if [ "${H1_ERR:-0}" -gt "${B_ERR:-0}" ] && [ "${H1_WERR:-0}" -gt 0 ]; then - ok "half 1: the delivery errors light up immediately (envelopeFlush/error $B_ERR->$H1_ERR, destTCP/Write/error=$H1_WERR — the blind IS visible, unlike rt-11-5's silent window)" +if [ "${H1_WERR:-0}" -ge 1 ] && [ "${H1_DERR:-0}" -ge 1 ] && [ "${H1_DROP:-0}" -ge 1 ]; then + ok "half 1: the outage is VISIBLE and COUNTED (Write/error=$H1_WERR, Dial/error=$H1_DERR, xtcp_tcp_dropped_total=$H1_DROP — the worker's errors, not the poller's)" else - not_ok "half 1: no delivery-error counters with the sink down — see evidence" + not_ok "half 1: the outage counters did not light up (Write=$H1_WERR Dial=$H1_DERR drops=$H1_DROP) — see evidence" fi if [ "${H1_POLLS:-0}" -gt "${B_POLLS:-0}" ]; then ok "half 1: polling continues through the outage (polls $B_POLLS->$H1_POLLS — the fast error frees the poller; no rt-11-5-style freeze)" @@ -104,35 +110,23 @@ else not_ok "half 1: polls stopped with the sink down — see evidence" fi -echo "rt-4-7: half 1 — the catcher is BACK; does the daemon reconnect?" +echo "rt-4-7: half 1 — the catcher is BACK; the worker reconnects (#339 fixed)" vm_exec_root victim "systemctl start xtcp2-catcher" -sleep 12 # a few cycles with the catcher listening again -BACK_DELTA=0 -{ +resume() { a="$(catcher_lines)" sleep 6 b="$(catcher_lines)" - BACK_DELTA=$((b - a)) + [ $((b - a)) -gt 10 ] } -H2_ERR="$(mval 'error.*envelopeFlush')" -echo "rt-4-7: catcher restored: delta=$BACK_DELTA envelopeFlush/error=$H2_ERR" -if [ "$BACK_DELTA" -le 10 ]; then - ok "half 1: THE PERMANENT BLIND — delivery stays dead after the sink returns ($BACK_DELTA lines/6s; tcpDest dials once and never reconnects, #339)" -else - not_ok "half 1: the catcher recovered on its own (no reconnect exists — reconcile this) — see evidence" -fi - -# The blind is the conn, not the catcher: a daemon restart re-dials and -# delivery resumes — the recovery the daemon itself needs. -vm_exec victim "sudo docker restart rt-xtcp2" >/dev/null -wait_for 90 "the restarted daemon answers" vm_exec victim \ - "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:9088/metrics | grep -qE '^(200|401|403)\$'" -sleep 3 -if victim_still_reporting; then - ok "half 1: a daemon restart re-dials and delivery resumes (the fix for #339 measured)" +wait_for 90 "delivery resumes after the catcher returns (the worker re-dials; NO daemon restart)" resume +BACK_DELTA="$(a="$(catcher_lines)"; sleep 6; b="$(catcher_lines)"; echo $((b - a)))" +H1_RECONN="$(tcp_reconnects)" +echo "rt-4-7: catcher restored: delta=$BACK_DELTA reconnects=$H1_RECONN" +if [ "$BACK_DELTA" -gt 10 ]; then + ok "half 1: RECONNECT — delivery resumed after the sink returned with NO daemon restart ($BACK_DELTA lines/6s, reconnects=$H1_RECONN — the #339 fix measured)" else - not_ok "half 1: delivery did not resume after the daemon restart — see evidence" + not_ok "half 1: delivery stayed dead after the sink returned — see evidence" fi # ============================================================================= @@ -161,9 +155,13 @@ vm_exec victim "sudo docker stop rt-garage" >/dev/null sleep 45 # uploads retry with backoff, the queue evicts oldest-first RSS2_KB="$(daemon_rss_kb)" +DROPPED="$(mval 's3_dropped_total')" +echo "rt-4-7: garage down: s3_dropped_total=$DROPPED RSS=$((RSS1_KB / 1024))->$((RSS2_KB / 1024))MiB" + +upload_error_ge_1() { [ "$(mval 'destS3Parquet.*type="error",variable="upload"}')" -ge 1 ]; } +wait_for 150 "the upload retries exhaust and the error counter lights" upload_error_ge_1 UPLOAD_ERR="$(mval 'destS3Parquet.*type="error",variable="upload"}')" DROPPED="$(mval 's3_dropped_total')" -echo "rt-4-7: garage down: upload/error=$UPLOAD_ERR s3_dropped_total=$DROPPED RSS=$((RSS1_KB / 1024))->$((RSS2_KB / 1024))MiB" SLOPE_KB=$(( (RSS2_KB - RSS1_KB) / 45 )) if [ "$SLOPE_KB" -le 2048 ]; then @@ -198,9 +196,10 @@ fi # --- verdict ------------------------------------------------------------------------- -# The queue-sink guard holds (bounded, counted, recovering) — the plan's -# expectation. The raw-TCP half is the permanent-blind finding (#339), -# asserted above: a receiver restart does not restore delivery; only a -# daemon restart does. File under the pinned issue; rt-11-5 measured the -# L2 variant. +# Both halves now hold the plan's expectation ("memory bounded while dest +# is down; recovers on broker return; no unbounded queue"): the s3 queue +# bounds and recovers, and — post-#339 — the tcp worker reconnects when the +# catcher returns, with the outage counted in destTCP errors + +# xtcp_tcp_dropped_total the whole time. The pre-fix permanent blind is the +# findings.md record (evidence 20261126T020602). finish rt-4-7 BLOCKED