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

CPU spike in python:3.12.2-slim-bookworm, almost Debian image #187

Open
rezvanshokranidev opened this issue May 30, 2024 · 0 comments
Open

Comments

@rezvanshokranidev
Copy link

I upgraded the Python version, switched from Alpine to Debian, and updated the libraries. After these changes, CPU throttling increased from 15% to 60%. When I remove hiredis in Debian, the CPU usage returns to normal. Could you help me resolve this issue?

FROM python:3.12.2-slim-bookworm

RUN  addgroup --system uwsgi && \
     adduser --home /home/uwsgi --system --ingroup uwsgi uwsgi 

RUN apt-get update && \
    apt-get --assume-yes install \
    supervisor \
    default-libmysqlclient-dev \
    curl \
    gcc \
    libcap2-bin \
    libxml2-dev \    
    default-mysql-client

ADD conf/requirements.txt /requirements.txt

RUN pip install -U pip && \
    pip install -r /requirements.txt

requirement.txt

alembic==1.12.0
arrow==0.13.1
bcrypt==3.1.6
certifi==2023.7.22
cffi==1.16.0
chardet==3.0.4
Click==8.1.7
coverage==7.3.1
Cython==0.29.37
datadog==0.44.0
decorator==4.4.0
Flask==2.3.2
idna==2.8
itsdangerous==2.1.2
Jinja2==3.1.4
python-jose==3.3.0
MarkupSafe==2.1.3
mysqlclient==2.1.1
pika==1.3.2
pycparser==2.19
pytest==7.4.4
python-dateutil==2.8.0
python-editor==1.0.4
python-magic==0.4.15
python-rapidjson==1.16
redis==3.5.3
redis-py-cluster==2.1.0
requests==2.31.0
s3cmd==2.4.0
SQLAlchemy==1.4.52
statsd-tags==3.2.1.post1
structlog==23.1.0
urllib3==1.26.18
uWSGI==2.0.24
Werkzeug==3.0.1
importlib-metadata==4.12.0
rsa==4.9
fakeredis==1.8.1
hiredis==2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant