Krypto-trading-bot: Incredibly high CPU utilizations driving >1000ms latencies

Created on 31 May 2019  路  8Comments  路  Source: ctubio/Krypto-trading-bot

Hey,

I think the latest upgrade has worsened my CPU utilization problems -- this morning K has been absolutely maxing out two separate cores, leading to latencies of up to 1500ms (typically
~20ms). I'm on BTC/USD, with market levels set to 321|321. I've tried with database=:memory: and without.

The behavior is sporadic: it will drop to 100% then back up to 200% (full two cores). I can tell in the UI when it's maxing out, as this is when the latencies spike (computational backlog somehow?).

Screen Shot 2019-05-31 at 1 24 21 PM

How can I downgrade to the previous commit? Or do you have any further ideas on troubleshooting? I can swap to ETH/USD or other pairs and see if the problem persists.

Thanks.

acknowledged in the lab bug

All 8 comments

sorry what exchange are you using?

:koala: thanks for the report'''

Thanks for the quick reply! using coinbase.

umf, for me was all nice with coinbase; let me try to debug a bit before consider a rollback

any other info you may have will be very welcome隆' (to allow me to reproduce your very same situation)

:koala: quick link to previous version: https://github.com/ctubio/Krypto-trading-bot/releases/download/0.4.x/K-0.4.13.46-linux-x86_64.tar.gz (in case you preffer to revert; replace the binary at /usr/local/bin/K-trading-bot with the one found in the zip build-linux-x86_64/local/bin/K-trading-bot)

My K.sh file has pretty much everything standard (api key, secret, passphrase, exchange) with OPTIONAL_ARGUMENTS="
--database=:memory:
--maker-fee=0.15
--taker-fee=0.25"

Thanks for the link, I'll keep toying around and see if I can troubleshoot anything before reverting.

i can notice some high cpu too; let me try a fix or otherwise i will rollback the release meanwhile fixing locally

many thanks for the quick report''' and sorry for the trouble''

no worries! i'm happy it wasn't just me. thanks for your quick working to fix it!!

e67977a005f638980128ef069f47ca07_gif-02-manos-ala-obra-gif_450-360

is suposed now that the cpu should be around 2% with max spikes of 6%; but feel free to comment in case you still have some offensive values.

meanwhile allow me to close the issue and turn the bug of today as a improvement for tomorrow; on next days i will try to go a bit lower without increasing latency; as is now latency is niiiice :D but cpu is still a liiiil high (1~3%) compared to previous commits

:koala: thanks for your (cpu) time'''

this worked! my cpu utilization is lower than it has ever been. thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CarlitoGrey picture CarlitoGrey  路  7Comments

Bzzz666 picture Bzzz666  路  8Comments

adirta picture adirta  路  4Comments

rscott7 picture rscott7  路  4Comments

nonkreon picture nonkreon  路  5Comments