You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 913de10
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/plugins/beam.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ Beam can also act as the sender: an opt-in mirror that continuously publishes th
153
153
}
154
154
```
155
155
156
-
-`endpoint` (required): the final remote receiver URL. Redirect responses (301, 302, 303, 307, and 308) are not followed; configure the destination URL directly. After a redirect, repeated polls are suppressed for the current mirror service instance. A Gateway restart probes the configured endpoint once again so a receiver corrected at the same URL can recover. HTTPS is enforced for non-loopback hosts; plaintext `http://` is accepted only for `localhost`/`127.0.0.1`/`::1` development.
156
+
-`endpoint` (required): the final remote receiver URL. Changing it starts fresh delivery to that receiver, including unchanged active sessions; pending terminal retries for the previous receiver are discarded, leaving its rows to expire normally. Redirect responses (301, 302, 303, 307, and 308) are not followed; configure the destination URL directly. After a redirect, repeated polls are suppressed for the current mirror service instance. A Gateway restart probes the configured endpoint once again so a receiver corrected at the same URL can recover. HTTPS is enforced for non-loopback hosts; plaintext `http://` is accepted only for `localhost`/`127.0.0.1`/`::1` development.
157
157
-`token`: Gateway credential for the remote receiver, sent as `Authorization: Bearer`. Accepts a plain string or a secret reference; a configured-but-unresolved token pauses mirroring instead of sending unauthenticated requests. Deployments fronted by an identity-aware proxy need an ingress that accepts this bearer credential.
158
158
-`catalogs` (required): the session catalog ids to mirror, as explicit per-catalog consent — an omitted or empty list mirrors nothing. The local `beam` receiver catalog is always excluded so two mirrored Gateways cannot re-mirror each other's rows.
159
159
-`pollSeconds` (default 30, minimum 10): how often the mirror scans local catalogs.
@@ -326,7 +317,7 @@ export function createBeamMirrorRunner(params: {
326
317
// Repeating the same poll cannot satisfy direct-only delivery. Hold this exact
327
318
// endpoint for this service instance; a fresh instance probes once so a receiver
328
319
// fixed in place can recover without a meaningless config change.
329
-
redirectBlockedEndpoint=endpoint;
320
+
redirectBlocked=true;
330
321
params.logger.warn(
331
322
`beam mirror upload blocked for ${payload.source}: receiver returned redirect (${error.status}); redirects are not followed; configure the final endpoint`,
332
323
);
@@ -340,9 +331,8 @@ export function createBeamMirrorRunner(params: {
340
331
signal.throwIfAborted();
341
332
if(!response.ok){
342
333
warnThrottled(`beam mirror upload failed (${response.status}) for ${payload.source}`);
343
-
returnfalse;
344
334
}
345
-
returntrue;
335
+
returnresponse.ok;
346
336
}finally{
347
337
// The mirror uses only the status; cancel the ignored payload so slow
348
338
// receiver responses cannot retain connection slots across poll retries.
@@ -396,6 +386,12 @@ export function createBeamMirrorRunner(params: {
396
386
warnThrottled(`beam mirror disabled: ${mirror}`);
397
387
return;
398
388
}
389
+
if(endpoint!==mirror.endpoint){
390
+
// Acknowledgements, terminal retries, and redirect blocks belong to one receiver.
0 commit comments