I have developed an application to simulate many computers each running a java REST server using docker.
Java Rest server is a Embedded Tomcat REST Server (I am not exactly aware as my colleague developped this part)
I use linux to spawn my containers. I can spawn multiple containers, each with their own java REST server running.
However, although the java application starts correctly (visible using its log) on each container, it takes a long time for the REST interface to be accessible using for example a simple CURL command.
With 4 containers, it takes up to 60 seconds for all the REST interfaces of the different containers to be accessible. (Sometimes it only takes a couple of seconds and sometime much more …)
With 10 containers, it tools about 10 minutes
With 60 containers, I stopped waiting …
Anyone experienced a similar issue or has any input on my problem ? Any link or reading material will be largely appreciated.
Could I see how much computing time each container get ? Could I force a container to have some computing time ?