How to use config.yml

Open
#433 1 comment 0 reactions 1 assignee View on GitHub

@mattjala is already working on this.

Since Aug 25, 2026.

Assessment

This issue has not been assessed yet.

Description

bug

In the windows system, I deployed an hsds using the file storage method. How can I deploy multiple hsds servers with different ports.I use the following command for deployment. And config.yml is located under the config folder
hsds --root_dir D:/hsds_data --host localhost --port 5101 --password_file config/passwd.txt --config_dir .\config --logfile hs.log

Under another project, I opened another command line to run hsds. At this time, I changed the port to 5199 and modified the parameters such as dn_port and head_port in config.yml, which were different from the first time. But at this point, an error was reported. I checked the log and found out
task: <Task finished name='Task-2' coro=<_run_app() done, defined at > exception=OSError(10048, "error while attempting to bind on address ('::', 6101, 0, 0): 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。")>......and`WARNING:root:process sn ended, result: ('', None)
WARNING:root:_enqueue_output - ValueError (handle closed?): I/O operation on closed file
WARNING:root:process dn0 ended, result: ('', None)
WARNING:root:_enqueue_output - ValueError (handle closed?): I/O operation on closed file
WARNING:root:process dn1 ended, result: ('', None)
WARNING:root:_enqueue_output - ValueError (handle closed?): I/O operation on closed file
WARNING:root:process dn2 ended, result: ('', None)
WARNING:root:_enqueue_output - ValueError (handle closed?): I/O operation on closed file
WARNING:root:process dn3 ended, result: ('', None)

WARNING:root:_enqueue_output - ValueError (handle closed?): I/O operation on closed file
READY! use endpoint: http://localhost:5101`
I confirm that no other ports conflict with these two ports. It seems that my config.yml has no effect at all. It still uses the same configuration. I want to know how I can deploy multiple hsds on the same computer, and they use different ports

Dominant language
Python
Stars
158
Forks
61
Avg merge
4d 17h
Merged PRs (30d)
6

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HDFGroup/hsds

All issues in HDFGroup/hsds

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.