Setting shm-size and ulimit in AKS

RobinFrcd 10 Reputation points
2023-05-04T20:17:24.6066667+00:00

Hi, I'm trying to deploy a torchserve service on my EKS cluster. The thing is it needs some specific configuration to work.

How can I set shm-size and ulimit for my deployments on AKS ? --shm-size=1g, --ulimit memlock=-1 and --ulimit stack=67108864

docker run --rm --shm-size=1g \
        --ulimit memlock=-1 \
        --ulimit stack=67108864 \
        -p8080:8080 \
        -p8081:8081 \
        -p8082:8082 \
        -p7070:7070 \
        -p7071:7071 \
        --mount type=bind,source=/path/to/model/store,target=/tmp/models <container> torchserve --model-store=/tmp/models

Thanks,

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,457 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Konstantin Davydov 0 Reputation points
    2024-03-22T08:23:33.64+00:00

    @KarishmaTiwari-MSFT sorry for bothering, but if there was any update on this? I'm experiencing the same issue, and only one way to overcome it is by using daemonset to modify ulimit on the node, but it seems a bit unfancy.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.