Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Unix Socket Connection Only to PostgreSQL Database (Version: [stellar-core 21.3.1]) #4459

Open
alejomendoza opened this issue Sep 9, 2024 · 0 comments

Comments

@alejomendoza
Copy link

I would like to propose a feature request to enforce the use of Unix socket connections for PostgreSQL in Stellar Core.

Currently, connecting to PostgreSQL over TCP/IP introduces significant externalize lag on the validator nodes, which negatively impacts node performance. It also promotes the bad practice of running a remote database rather than hosting the database locally on the same machine as the node.

Reasons to enforce Unix socket connections:

  1. Reduce Externalize Lag: A direct Unix socket connection is much faster than TCP/IP, especially when the database is hosted on the same machine, which can significantly reduce externalize lag.
  2. Best Practice for Node Deployment: Limiting database connections to Unix sockets ensures that developers run the database locally on the same machine as the Stellar Core node. This is a best practice for optimal node performance and security.

I believe that enforcing Unix socket connections will help developers avoid performance degradation and promote proper validator node configuration.

@alejomendoza alejomendoza changed the title [Enforce Unix Socket Connection Only to PostgreSQL Database] (Version: [stellar-core 21.3.1]) Enforce Unix Socket Connection Only to PostgreSQL Database (Version: [stellar-core 21.3.1]) Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant