NVIDIA / aistore

AIStore: scalable storage for AI applications
https://aistore.nvidia.com
MIT License
1.21k stars 160 forks source link

ais show cluster can list the infor, but client.cluster().is_aistore_running() return False #142

Closed ray-lee-94 closed 1 year ago

ray-lee-94 commented 1 year ago

I set a cluster in the local nework server(192.168.0.2), in the server,

import aistore
import os
import webdataset as wds

client = Client("http://192.168.0.2:8080")
client.cluster().is_aistore_running()

return True

on another server (192.168.0.3) when using ais show cluster

it output

PROXY            MEM USED(%)     MEM AVAIL       LOAD AVERAGE    UPTIME          STATUS
p[TZYp8084]      0.02%           166.48GiB       [3.8 3.9 4.1]   6h2m0s          online
p[YuPp8081]      0.02%           166.48GiB       [3.8 3.9 4.1]   6h2m0s          online
p[aSPp8082]      0.02%           166.48GiB       [3.8 3.9 4.1]   6h2m0s          online
p[eCjp8083]      0.02%           166.48GiB       [3.8 3.9 4.1]   6h2m0s          online
p[jVAp8080][P]   0.02%           166.48GiB       [3.8 3.9 4.1]   6h1m50s         online

TARGET           MEM USED(%)     MEM AVAIL       CAP USED(%)     CAP AVAIL       LOAD AVERAGE    REBALANCE       UPTIME STATUS
t[ChBt8088]      0.02%           166.48GiB       48%             4.594TiB        [3.8 3.9 4.1]   -               6h2m0s online
t[Himt8086]      0.02%           166.48GiB       48%             4.594TiB        [3.8 3.9 4.1]   -               6h2m0s online
t[YvDt8085]      0.02%           166.48GiB       48%             4.594TiB        [3.8 3.9 4.1]   -               6h2m0s online
t[epDt8087]      0.02%           166.48GiB       48%             4.593TiB        [3.8 3.9 4.1]   -               6h2m0s online
t[fAOt8089]      0.02%           166.48GiB       48%             4.593TiB        [3.8 3.9 4.1]   -               6h2m0s online

Summary:
   Proxies:             5 (all electable)
   Targets:             5
   Cluster Map:         version 37, UUID qkElmwZD0, primary p[jVAp8080]
   Deployment:          dev
   Status:              10 online
   Rebalance:           n/a
   Authentication:      disabled
   Version:             3.18.00c7ba8ae
   Build:               2023-07-25T16:30:30+0800

But

from aistore import Client
import aistore
import os
import webdataset as wds

client = Client("http://192.168.0.2:8080")
client.cluster().is_aistore_running()

return False

ray-lee-94 commented 1 year ago

the answer is

 pip install pysocks