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

sched_setaffinity alerts #1492

Open
blunweon opened this issue Feb 7, 2025 · 4 comments
Open

sched_setaffinity alerts #1492

blunweon opened this issue Feb 7, 2025 · 4 comments

Comments

@blunweon
Copy link

blunweon commented Feb 7, 2025

Hi there, been getting these alerts in the logs of Docker but otherwise the app works perfectly fine. Just wondering what they could mean?

image

@Zoey2936
Copy link
Member

Zoey2936 commented Feb 7, 2025

what cpu do you use? did you limit the cpu in docker? Thanks! Your compose file would be useful!

@blunweon
Copy link
Author

blunweon commented Feb 7, 2025

I'm using a E5-2680v4. The Docker is running in a Proxmox LXC. I don't remember setting any affinity.

This is my compose.yaml file:

services:
  npmplus:
    container_name: npmplus
    image: zoeyvid/npmplus:latest
    restart: unless-stopped
    network_mode: host
    volumes:
      - /opt/npmplus:/data
      - /opt/npmplus:/tmp
    environment:
      - TZ=###myTZ
      - LOGROTATE=true
      - LOGROTATIONS=7
      - ACME_EMAIL=###mymail
      - ACME_SERVER=https://acme.zerossl.com/v2/DV90
      - ACME_EAB_KID=###mykey
      - ACME_EAB_HMAC_KEY=###mykey
      - ACME_MUST_STAPLE=false
      - ACME_OSCP_STAPLING=true
      - DEFAULT_CERT_ID=2
      #- REGENERATE_ALL=true #force regeneration of hosts files
  crowdsec:
    container_name: crowdsec
    image: crowdsecurity/crowdsec:dev
    restart: unless-stopped
    network_mode: host
    ports:
      - 7422:7422
      - 8080:8080
    environment:
      - TZ=###myTZ
      - COLLECTIONS=ZoeyVid/npmplus
    volumes:
      - /opt/crowdsec/conf:/etc/crowdsec
      - /opt/crowdsec/data:/var/lib/crowdsec/data
      - /opt/npmplus/nginx:/opt/npm/nginx:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
networks: {}

@Zoey2936
Copy link
Member

Zoey2936 commented Feb 7, 2025

I think it is related to the lxc, can you try test it in a kvm or directly on the proxmox host, please?
affinity is set here:

worker_cpu_affinity auto;

maybe the lxc container misses permissions to set affinity?

@blunweon
Copy link
Author

blunweon commented Feb 7, 2025

Is the default nginx.conf file exposed to via mountpoints in the Docker volume? It might be possible that the LXC container does not have permissions to set affinity as it already has affinity set. Is it possible to turn that particular variable off myself? I'll attempt to run it on a VM or Proxmox host itself.

Thank you for pointing me in the right direction!

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

No branches or pull requests

2 participants