I’m trying to run a Python Flask application with a Docker configuration in a Hugging Face space. I have the free settings for CPU basic which claims to be 2vcpu, however I’m getting licensing errors from the hosting service I use called Intersystems Iris community edition that there are 24 cores running when the limit is 20. Maybe I’m missing something but I have two questions.
- Is it possible that there actually are 24 cores running in my free HF space?
- Is there a way I can limit it to 20?
Thank you in advance for any assistance you can provide.
I tried adding the below arguments to my docker-compose.yml to limit the cores but it doesn’t seem to be taking into effect.
deploy:
resources:
limits:
cpus: '20'
cpuset: "0-19"