🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

How to speed up solace standalone docker?

rlsf
rlsf Member Posts: 2
edited December 2022 in General Discussions #1

hello, i'm working with solace pubsub image (solace/solace-pubsub-standard:latest), and using it in testing takes a lot of time, as it takes almost 30 seconds to start it up, compared to a few seconds for other images i'm using (e.g. mongodb).

is there a way to speed up the image startup time by allocating more resources or disabling some features?

Answers

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 963 admin

    Hi @rlsf,

    The solace container does take a bit longer to startup than others. Allocating more resources might help some but I wouldn't expect to get it down to only a few seconds. Have you tried to use the `docker stats` command to see if it's maxing out any resources during start-up? For me it seems to take ~22-25 seconds.

    Also out of curiosity, for testing purposes are you starting up and tearing down the container for each test or bringing it up once to run multiple tests against?

  • rlsf
    rlsf Member Posts: 2
    edited December 2022 #3

    i use it for component testing, so i start it once, run all my tests and then tear it down.

    it takes about 25 seconds each time i do it, however the tests themselves run much faster than that, so it ended up doubling my tests time.