Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

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: 973 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.

This Month's Leaders

This Week's Leaders