Issues running Docker container in Hugging Face Space
When I try to run my app as a Docker Container locally it works fine, but I attempted to create a Hugging Face Space to try to deploy my app to and when I run with the Docker SDK selected I run into the following IRIS error report.
Has anyone seen something like this before?
Starting Control Process
Global buffer setting requires attention. Auto-selected 25% of total memory.
Allocated 105698MB shared memory 95166MB global buffers, 1020MB routine buffers
This copy of InterSystems IRIS has been licensed for use exclusively by:
Too many Cores (24) for InterSystems IRIS Community License.
Copyright (c) 1986-2024 by InterSystems Corporation Any other use is a violation of your license agreement
Error: Invalid Community Edition license, may have exceeded core limit. - Shutting down the system : $zu(56,2)= 0Starting IRISComments
The error is:
Too many Cores (24) for InterSystems IRIS Community License.
InterSystems IRIS Community License allows only 20 cores: https://docs.intersystems.com/iris20241/csp/docbook/DocBook.UI.Page.cls?KEY=ACLOUD#ACLOUD_limits
You need to create a space with no more than 20 cores available
What if IRIS could limit itself to the number of limited cores, how easier would it be for newcomers
Sounds like a great idea for https://ideas.intersystems.com/
Thank you for the response. I guess I'm a bit baffled because as shown, the free hugging space I'm using only has basic settings so I'm not sure how exactly 24 cores are being used. Maybe it's a question for the HuggingFace community I'm not sure.
I'm not familiar with HuggingFace, unfortunately.
Generally, to limit amount of cores available to IRIS, the documentation suggests to use the following Docker flags: --cpuset-cpus=0-19 --cpus=20
See the step 4 here: https://docs.intersystems.com/iris20241/csp/docbook/DocBook.UI.Page.cls?KEY=ACLOUD#ACLOUD_image
I don't know how to set them on the HuggingFace
Before creating this post, I tried to impose the CPU limits in Docker but it seems like they weren't taking into effect for whatever reason so I have a question out to the Hugging Face community about it.
I'll report back if I learn of anything that helps. Or if anyone sees this who has used a Docker Iris project with HF spaces feel free to chime in. I'll also note this isn't a super important blocking issue for what I'm working on, I just tried out to see if I can deploy to Hugging Face spaces kind of for fun.