jenkinsci / jenkinsci/port-allocator-plugin
[JENKINS-11255] Port allocation from named dynamic pools
- Dominant language
- Java
- Stars
- 11
- Forks
- 34
- Avg merge
- 23h 26m
- Merged PRs (30d)
- 1
Description
In some cases, it is necessary for a job to aquire a port from a pool of predefined ports (eg. for using an independent memcache connection to be able to flush it on each test setup).
Each pool should have a name and an enumerated list of port numbers.
If a job depends on a pool, it is blocked until any of the pool's port gets released.
If a job has finished, it releases the aquired port, just as it is implemented with the fixed port allocation strategy.
Allocating a fixed port should lock that port from getting aquired by another job, that depends on a pool, containing the same port and vice versa.
---
Originally reported by
pepov, imported from: Port allocation from named dynamic pools
pepov
Raw content of original issue
In some cases, it is necessary for a job to aquire a port from a pool of predefined ports (eg. for using an independent memcache connection to be able to flush it on each test setup).
Each pool should have a name and an enumerated list of port numbers.
If a job depends on a pool, it is blocked until any of the pool's port gets released.
If a job has finished, it releases the aquired port, just as it is implemented with the fixed port allocation strategy.
Allocating a fixed port should lock that port from getting aquired by another job, that depends on a pool, containing the same port and vice versa.
1 attachment
- [port-allocator.patch](https://issues.jenkins.io/secure/attachment/20922/port-allocator.patch)
Contributor guide
Assessment
This issue has not been assessed yet.