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

Allow connections over TCP besides Unix sockets for tools #263

Merged

Conversation

stephan2012
Copy link
Contributor

Signed-off-by: Stephan Austermühle au@hcsd.de

Fixes #137

This PR allows tools like render_list to connect to renderd over network instead of local Unix sockets allowing for easy separation of mod_tile and renderd. Also, it enables connecting to dynamically scaling renderd instances (e.g., when deployed on a Kubernetes cluster). Simply pass -s ‹hostname›:‹tcpPort› instead of a Unix socket path to use.

Feedback on this PR is welcome.

Signed-off-by: Stephan Austermühle <au@hcsd.de>
@pantierra
Copy link
Collaborator

Many thanks for the PR. This looks like a good enhancement. I would like to keep it open a bit to allow others to share their opinions.

@t-tomek
Copy link

t-tomek commented Jan 5, 2022

For those who long for this PR to be merged like me I present (temporary) UNIX solution:

socat UNIX-LISTEN:/run/renderd/renerd.sock TCP4:IP:PORT

Make your renderd available by IP & PORT. Create socket file with socat so u could use render tools with -s option

@pantierra pantierra merged commit f0453c3 into openstreetmap:master Jan 6, 2022
@pantierra
Copy link
Collaborator

Thanks a lot for your contribution @stephan2012.

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.

renderd does not listen on unix and TCP sockets.
3 participants