Skip to content

Troubleshooting / System Startup Is Slow

In environments without public network access, or when the network speed is slow, the system may start up slowly.

The images used by DataFlux Func all contain the dataflux-func.com prefix.

Therefore, when starting the system directly with the docker stack deploy command, Docker automatically sends requests to dataflux-func.com to check images.

However, because the actual network is unreachable, before starting each service, Docker will wait until the image check fails.

For the above reasons, when using the docker stack deploy command to start the system, you need to additionally specify the --resolve-image never parameter to prevent Docker from checking images.

The command is as follows:

Bash
1
sudo docker stack deploy dataflux-func -c {installation directory}/docker-stack.yaml --resolve-image never

How to reproduce the slow startup issue?

We can artificially create the slow startup issue in a normal environment and compare:

  1. Add an incorrect record in /etc/hosts: 255.255.255.1 dataflux-func.com
  2. Use the ping dataflux-func.com command to confirm that the domain is inaccessible
  3. Use the following commands to compare the startup speed:
    • sudo docker stack deploy dataflux-func -c {installation directory}/docker-stack.yaml
    • sudo docker stack deploy dataflux-func -c {installation directory}/docker-stack.yaml --resolve-image never