Skip to content

Enable grpclb for java implementation #6848

@wicharypawel

Description

@wicharypawel

Hello,
I am a .NET developer trying to communicate java client with custom C# implementation of lookaside server. The question is if somebody may share working configuration of how to enable grpclb in Java? I have tried examples and read release notest but without success.

Steps I have tried before:

  • connect C# client with server using my custom lookaside server (IT WORKS OK)
  • connect Go client with server using my custom lookaside server (IT WORKS OK)
  • when working with JAVA I have faced few pages over the internet with some puzzels but I can not get them working together.

My current setup:

Java Client -------port 8000 Service replica 1 written in C# (name: grpc-server)
| |
| |----------port 8000 Service replica 1 written in C# (name: grpc-server)
|
port 9000
Lookaside Loadbalancer written in C# (name: grpc-server-balancer)

Answering questions below would help: (assume I am using io.grpc version 1.28.0)

  • is it required to configure dns resolver like this .nameResolverFactory(new DnsNameResolverProvider()) ?
  • how to force grpclb policy for ManagedChannel?
  • it is required for lookaside server to listen to port 80 or 443 or port can be variable when setting target?
  • is it required to support TXT records? (I see a log like this FINE: No TXT records found for grpc-server-balancer)
  • is it required to support grpc service config?

So sorry for "newbie" questions bear in mind I'm not a full blast Java engineer

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions