FlowFuse / device-agent

An agent to run FlowFuse managed instances of Node-RED on devices
Apache License 2.0
15 stars 8 forks source link

Enable WebSocket Affinity in the device agent #213

Closed hardillb closed 7 months ago

hardillb commented 9 months ago

part of FlowFuse/flowfuse#2514

Description

As part of work to enable horizontal scaling of the Forge App, this allows the Device agent to use a cookie to bind to a specific instance (using Nginx Affinity mapping to start with).

Reuses the affinity cookie if present, shares the affinity cookie with the forge platform if available.

Related Issue(s)

FlowFuse/flowfuse#2514

Checklist

Labels

hardillb commented 9 months ago

Need to work out how to test this

hardillb commented 9 months ago

I've used the default Cookie name here, we may want to set it to a FF specific value.