Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, we implemented a storageclient module in pyz and result in high cpu usage of redis container

Options
UPX0N1DT2
UPX0N1DT2 Posts: 18 🧑🏻‍🚀 - Cadet
edited August 2021 in Help

Hello,
we implemented a storageclient module in pyz and result in high cpu usage of redis container
there we use the following method and could identify as performance issue

$this->storageClient->getKeys()

the storageClient is the vendor \Spryker\Client\Storage\StorageClient class

Is there an known issue by using this method or is there something to note by the implementation?

Comments

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    edited August 2021
    Options

    Hi Steffen,

    I don’t know what kind of redis command this client use exactly, but if it use redis keys at the end, it’s something you should avoid in your code, whenever is possible.
    https://redis.io/commands/KEYS

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    Options

    Just checked this, it seems like this client use redis keys command, which I mentioned above.

  • UPX0N1DT2
    UPX0N1DT2 Posts: 18 🧑🏻‍🚀 - Cadet
    Options

    ok thanks