qlib-server icon indicating copy to clipboard operation
qlib-server copied to clipboard

confusion with config in online mode

Open krsnad opened this issue 5 years ago • 1 comments

I was already using QLIB without the server. my provider_uri was QLIB_DS2_DATA_DIR

Now I installed the qlib server and it is running. I checked the logs My config is as follows `ONLINE_CONFIG = { # data provider config

"calendar_provider": {"class": "LocalCalendarProvider", "kwargs": {"remote": True}},
"instrument_provider": "ClientInstrumentProvider",
"feature_provider": {"class": "LocalFeatureProvider", "kwargs": {"remote": True}},
"expression_provider": "LocalExpressionProvider",
"dataset_provider": "ClientDatasetProvider",
"provider": "ClientProvider",

# config it in user's own code
"provider_uri": "127.0.0.1:/",
# cache
# Using parameter 'remote' to announce the client is using server_cache, and the writing access will be disabled.

"expression_cache": None,
"dataset_cache": None,
"calendar_cache": None,
"mount_path": QLIB_DS2_DATA_DIR,
"auto_mount": True,  # The nfs is already mounted on our server[auto_mount: False].
"flask_server": "127.0.0.1",
"flask_port": 9710,
"region": "cn",

}`

Now Im not able to query any data.

krsnad avatar Dec 05 '20 06:12 krsnad

Hi, you can try the following operation:

  • View the NFS mount result: df -h If NFS is not successfully mounted, you can mount it manually: sudo mount -t nfs 127.0.0.1:/ <QLIB_DS2_DATA_DIR>
  • Check whether qlib-server is running successfully: telnet 127.0.0.1 9710 If port 9710 cannot be connected, you can post the log of qlib-server startup

zhupr avatar Dec 07 '20 11:12 zhupr