Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High cpu usage on scylladb on idle #1149

Open
baronets-turk opened this issue Apr 25, 2024 · 3 comments
Open

High cpu usage on scylladb on idle #1149

baronets-turk opened this issue Apr 25, 2024 · 3 comments
Labels
t/bug Something isn't working

Comments

@baronets-turk
Copy link

baronets-turk commented Apr 25, 2024

Describe the bug

I noticed that in my docker compose out of many other dependencies scylla database consumes 100% of one cpu right after the start on idle (without any payload). Same config on docker desktop consumes near to nothing.

To Reproduce

  1. Run docker compose up scylla1 -d with config
services:
  scylla1:
    image: scylladb/scylla
    container_name: scylla1
    hostname: scylla1
    restart: always
    ports:
      - "9042:9042"
    volumes:
      - scylla1-data:/var/lib/scylla
    environment:
      - CLUSTER_NAME=scylla
      - SCYLLA_SEEDS=scylla1
    command:
      - --authenticator
      - PasswordAuthenticator
      - --authorizer
      - CassandraAuthorizer

volumes:
  scylla1-data:
  1. Run docker stats --format "table {{.Name}}\t{{.Container}}\t{{.CPUPerc}}" to the the load:
NAME      CONTAINER      CPU %
scylla1   9d42c55f2f3c   101.07%

It stays the same around 100% all the time

Expected behavior

On docker desktop it consumes a far less cpu:

NAME         CONTAINER      CPU %
ja-scylla1   0ea14890114c   4.50%

Diagnostic report (REQUIRED)

OrbStack info:
Version: 1.5.1
Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info:
macOS: 14.4.1 (23E224)
CPU: arm64, 10 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 16 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-04-25T13-05-37.768371Z.zip

Screenshots and additional context (optional)

No response

@baronets-turk baronets-turk added the t/bug Something isn't working label Apr 25, 2024
@baronets-turk baronets-turk changed the title High cpu usage on scylla database on idle High cpu usage on scylladb on idle Apr 25, 2024
@slinorb
Copy link
Member

slinorb commented Apr 25, 2024

Tried that and could not reproduce:

NAME      CONTAINER      CPU %
scylla1   f88205c6a8e4   4.41%

Checked the activity monitor and there was no high CPU usage for OrbStack processes either.

@baronets-turk
Copy link
Author

What if fix version of scylla? It's ok for me with 5.2 version, but consumes a lot of cpu on latest (5.4):

services:
  scylla1:
    image: scylladb/scylla:5.4.6
    container_name: scylla1
    hostname: scylla1
    restart: always
    ports:
      - "9042:9042"
    volumes:
      - scylla1-data:/var/lib/scylla
    environment:
      - CLUSTER_NAME=scylla
      - SCYLLA_SEEDS=scylla1
    command:
      - --authenticator
      - PasswordAuthenticator
      - --authorizer
      - CassandraAuthorizer

volumes:
  scylla1-data:

@slinorb
Copy link
Member

slinorb commented Apr 26, 2024

Tried 5.4.6 tag and the CPU was still around 5%. Even tried linux/amd64 (platform: linux/amd64) image and the CPU usage was around 10%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants