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

Set KFServing default worker to 1 #1106

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Set KFServing default worker to 1 #1106

merged 1 commit into from
Sep 29, 2020

Commits on Sep 28, 2020

  1. Set default worker to 1

    KFServer uses the number of cores on the machine to set the number of process in its tornado service which can delay the initialization time and increase the memory usage a lot.
    
    A local testing suggests that KFServer loaded 64 processes and used more than 500Mb for a simple SKLearn model. Once I set the worker number to 1, the memory usage was reduced to around 100Mb. 
    ```
    [I 200927 18:26:06 kfserver:88] Registering model: mlguild-iris-svm
    [I 200927 18:26:06 kfserver:77] Listening on port 8080
    [I 200927 18:26:06 kfserver:79] Will fork 0 workers
    [I 200927 18:26:06 process:126] Starting 64 processes
    ```
    yuzliu committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    b28a63a View commit details
    Browse the repository at this point in the history