Skip to content

Load Simulator with n8n in queue mode. Display the size of waiting and active jobs in realtime simulation. Use Openobserve to analyze processes.

Notifications You must be signed in to change notification settings

digital-boss/n8n-loadsym

Repository files navigation

Configuration contains n8n in queue mode with scalable amount of workers and webhooks. Each webhooks executed with sidecar proxy container to track which request handled by which webhook instance.

  • ./queue.sh By timer displays the size of waiting and active jobs.
  • ./send-requests Sends job requests to "Load Simulator" workflow in infinite loop. Press Enter to stop. Each request contains job id and delay (in seconds).

Openobserve used for analytics.

Usage

Prepare:

  • source ./autocomplete.sh OR open shell in VSCode.

Deploy:

  • ./manage.sh redeploy scale=4
  • ./compose.sh up -d balancer
  • Activate "Load Simulator" workflow from UI.

Start & watch:

Stop:

  • stop send requests by pressing Enter.
  • stop watch queue by pressing Enter.

Analyze:

Openobserve

Ingest logs

Examples:

curl http://localhost:5080/api/org1/stream1/_json -i -u 'root@example.com:Complexpass#123' -d '[{"author":{"x":"Prabhat Sharma"}}]'
curl http://localhost:5080/api/default/quickstart1/_json -i -u 'root@example.com:Complexpass#123' --data-binary "@k8slog_json.json"

ToDo

  • Replace balancer with alias network (see n8nscale at dockergui server).
  • Improve management toolset and commands.
  • Write fully automated tests. May be add Grafana with InfluxDB or Prometheus?

Resources

About

Load Simulator with n8n in queue mode. Display the size of waiting and active jobs in realtime simulation. Use Openobserve to analyze processes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published