Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
7c7c8266
Commit
7c7c8266
authored
May 12, 2025
by
helloyongyang
Browse files
docs(server): Add a doc of Scheduling Between Multiple Services
parent
9b03e5c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
docs/en_US/02.start_server.md
docs/en_US/02.start_server.md
+11
-1
docs/zh_CN/02.start_server.md
docs/zh_CN/02.start_server.md
+11
-0
No files found.
docs/en_US/02.start_server.md
View file @
7c7c8266
...
...
@@ -23,7 +23,6 @@ The service endpoint is: `/v1/local/video/generate`
The
`message`
parameter in
`scripts/post.py`
is as follows:
```
python
message
=
{
"task_id"
:
generate_task_id
(),
...
...
@@ -68,3 +67,14 @@ python scripts/stop_running_task.py
The service endpoint is:
`/v1/local/video/generate/stop_running_task`
After terminating the task, the server will not exit but will return to waiting for new requests.
### Scheduling Between Multiple Services
You can start multiple services using
`scripts/start_server.sh`
. Note that the port numbers under the same IP must be different for each service.
```
shell
python scripts/post_multi_servers.py
```
`post_multi_servers.py`
will schedule client requests according to the status of the services.
docs/zh_CN/02.start_server.md
View file @
7c7c8266
...
...
@@ -67,3 +67,14 @@ python scripts/stop_running_task.py
服务的接口是:
`/v1/local/video/generate/stop_running_task`
终止了任务之后,服务端并不会退出服务,而是回到等待接收新请求的状态。
### 多个服务之间的调度
可以通过
`scripts/start_server.sh`
起多个服务,注意同一个ip下的端口号,不同服务之间要保持不同。
```
shell
python scripts/post_multi_servers.py
```
`post_multi_servers.py`
会根据服务的空闲状态,进行调度客户端发起的请求。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment