[ 
https://issues.apache.org/jira/browse/FLINK-17611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105753#comment-17105753
 ] 

Igal Shilman edited comment on FLINK-17611 at 5/12/20, 9:25 PM:
----------------------------------------------------------------

Hi [~slinkydeveloper],

Welcome to the project! looking forward to hear about your investigation 
results with StateFun on k8s!

 

Regarding unix domain sockets, we've discussed this as a potential performance 
improvement internally, but didn't get to investigate this yet, and any help 
here would be much appreciated. 

Before jumping into the implementation details, I'm wondering if you have ever 
used (or familiar with) unix domain sockets from the JVM, and are they are such 
a drastic improvement, specifically when used from a JVM?

since as far as I can see, using UDS requires JNI. 

 

As a side note, I've quickly Googled and found [an 
example|https://github.com/square/okhttp/tree/master/samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets]
 of okhttp client (the client that we use for remote http functions) that works 
with UDS.

So possible that could be a starting point for a small experiment.

 


was (Author: igal):
Hi [~slinkydeveloper],

Welcome to the project! looking forward to hear about your investigation 
results with StateFun on k8s!

 

Regarding unix domain sockets, we've discussed this as a potential performance 
improvement internally, but didn't get to investigate this yet, and any help 
here would be much appreciated. 

Before jumping into the implementation details, I'm wondering if you have ever 
used (or familiar with) unix domain sockets from the JVM, and are they are such 
a drastic improvement, specifically when used from a JVM?

since as far as I can see, using UDS requires JNI. 

 

As a side note, I've quickly Googled and found[ an 
example|[https://github.com/square/okhttp/tree/master/samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets]]
 of okhttp client (the client that we use for remote http functions) that works 
with UDS.

So possible that could be a starting point for a small experiment.

 

> Support unix domain sockets for sidecar communication in Stateful Functions
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-17611
>                 URL: https://issues.apache.org/jira/browse/FLINK-17611
>             Project: Flink
>          Issue Type: New Feature
>          Components: Stateful Functions
>            Reporter: Francesco Guardiani
>            Priority: Major
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Hi all,
> I'm quite new to this project and I've started investigating its potential 
> usage in Kubernetes.
> I've found in past that using Unix Domain Sockets across several containers 
> in the same pod gives an interesting performance boost and drastically 
> reduces the overhead of going through the network stack. Given that 
> containers in a pod run in the same host, it's perfectly reasonable to let 
> them communicate through unix domain sockets.
> If you're interested in such feature, I'm more than willing to help 
> implementing that, given that I need a few pointers where to start from



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to