Sign inSign up

larsid/load-balancer

By larsid

Updated about 3 years ago

Image to run load balancer using IOTA blockchain.

Image
0

5.8K

larsid/load-balancer repository overview

Load Balancer

Image to run load balancer using IOTA blockchain.

Bundles

SOFT-IoT-dlt Bundles installed:

This image uses larsid/soft-iot-base as base image, so all bundles that larsid/soft- iot -base has it, this image has it too.

How to use this image

Run the image:
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 larsid/load-balancer:<tagname>
Run the image overriding some parameters:

You can also override some parameters using the -e parameter, to set environment variables, the parameters you can override are listed below:

ParameterDescriptionDefault value
DLT_PROTOCOLDefine what type of protocol is used by the API client."https"
DLT_URLDefines which is the URL of the network node that the client should connect to."nodes.devnet.iot.org"
DLT_PORTDefines the port.443
ZMQ_SOCKET_PROTOCOLDefines which messaging system protocol is used by the network to notify the status of transactions."tcp"
ZMQ_SOCKET_URLDefines the URL of the messaging system used by the network to notify the status of transactions."zmq.devnet.iota.org"
ZMQ_SOCKET_PORTDefines which messaging system port is used by the network to notify the status of transactions.5556
SAMPLING_INTERVALDefines the sampling interval in milliseconds.1000
LOAD_LIMITDefines what is the minimum value required to start balancing.10
LB_ENTRY_TIMEOUTDefines the value in milliseconds to resubmit a transaction of type LB_ENTRY.8000
TIMEOUT_LB_REPLYMaximum time to wait in milliseconds to receive a response from a gateway.20000
TIMEOUT_GATEWAYMaximum wait time in milliseconds for the last transaction to be resubmitted.40000
GROUPThe gateway group."cloud/c1"
COLLECT_TIME1Device collect time.200
PUBLISH_TIME1Device publish time.2000
Obs1: From version 1.0.1 upwards.
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 -e DLT_PROTOCOL=http -e SAMPLING_INTERVAL=5 -e SAMPLING=10 -e LOAD_LIMIT=2 larsid/load-balancer:<tagname>

Changelog

  • 1.0.1 - Change collect_time and publish_time using environment variables.
  • 1.0.2 - Using the larsid/soft-iot-base:1.1.3 as base image and fix duplicate transaction processing.
  • 2.0.0 - Using the larsid/soft-iot-base:2.2.0 as base image and fix infinite wait when gateway doesn't get device.

Tag summary

Content type

Image

Digest

sha256:c6bf1f76a

Size

190 MB

Last updated

about 3 years ago

docker pull larsid/load-balancer