How can I use mutiple agents on the one Job executor (OD-1095)
Closed
bauk opened 1 year ago

How can I use mutiple agents on the one Job executor?I tried use "IP Address" is 'A' or "IP Address" is 'B' or "IP Address" is 'C',but use Test to run commands and it only worked on the one of these agents.

Robin Shen commented 1 year ago

The job executor will schedule jobs to run on different agent based on agent load, although test always run on some specific agent.

PS: instead of using multiple ip addresses, you may define agent attribute and use that attribute to select agents into executor.

bauk commented 1 year ago

Snipaste_2023-01-13_10-14-52.jpg Snipaste_2023-01-13_10-15-32.jpg Snipaste_2023-01-13_10-24-31.jpg try this way,but only one agent worked,maybe I define somthing wrong

Robin Shen commented 1 year ago

如果只有一个任务运行,那么 onedev 只会选择一个队列里面的第一个agent,如果有多个任务同时运行,onedev会根据负载分配任务到多个agent。另外升级到最新版本,因为老版本的负载均衡可能有bug。还有在 job executor里 定义 agent selector 的地方,点击下matched agent 图标,看看是否matched 了期望的agent

bauk commented 1 year ago

那我自己再尝试下,感谢解惑。

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1095
Please wait...
Page is in error, reload to recover