This example demonstrates how to use the httpcluster runnable with the go-supervisor to manage multiple HTTP servers dynamically.
Overview
The example shows an interactive HTTP server that can reconfigure itself to listen on different ports based on POST requests. The server starts on port 8080 and can be instructed to move to a different port by sending a JSON payload.
Running the Example
# From the examples/httpcluster directory
go run main.go
The server will start on port 8080. Visit http://localhost:8080 to see instructions.