Skip to content

[#247] Distributed port manager (PortManager__Generic2)#401

Merged
dmitry-lipetsk merged 1 commit into
postgrespro:masterfrom
dmitry-lipetsk:D20260714_001--PortManager__Generic2
Jul 14, 2026
Merged

[#247] Distributed port manager (PortManager__Generic2)#401
dmitry-lipetsk merged 1 commit into
postgrespro:masterfrom
dmitry-lipetsk:D20260714_001--PortManager__Generic2

Conversation

@dmitry-lipetsk

@dmitry-lipetsk dmitry-lipetsk commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Because we plan to start using testgres with remote machines via remote_ops, there is need a distributed port manager.

PortManager__Generic2 provides this functional. It uses os_ops and implements locks via folders in /tmp/testgres/ports/ directory on a target machine.

Ofcource it has a some problem but anyone can implement own port manager and use it instead our.

Critical changes:

  • global variable 'bound_ports' is removed

Closes #247

Because we plan to start using testgres with remote machines via remote_ops, there is need a distributed port manager.

PortManager__Generic2 provides this functional. It uses os_ops and implements locks via folders in /tmp/testgres/ports/ directory on a target machine.

Ofcource it has a some problem but anyone can implement own port manager and use it instead our.

Critical changes:
 - global variable 'bound_ports' is removed
@dmitry-lipetsk dmitry-lipetsk merged commit 946054e into postgrespro:master Jul 14, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using lock files for port reservation

1 participant