In Local I am using plain Text for production useTransport security is used 
as aws ALB only supports ssl settings.
So just a corrections:
Map<String, Object> customArgs = new HashMap<>();
customArgs.put("channelNumber", String.valueOf(channelNumber));
ManagedChannel channel = ManagedChannelBuilder.forTarget(grpcUrl)
.usePlaintext()
.defaultLoadBalancingPolicy("round_robin")
.enableRetry()
.maxRetryAttempts(6)
.defaultServiceConfig(customArgs)
.build();

Thanks & Regards,
Pawan Sharma

On Tuesday, June 18, 2024 at 5:41:35 PM UTC+5:30 Pawan Kumar Sharma wrote:

> Hi Guys,
>
> I am seeing 1-2% grpc Traffic gets dropped even after following best 
> practices.
> I am using channel polling of size 10-20, best practices suggested in for 
> polling is we have a unique channel name and even with retry added these 
> numbers did not change.
> For channel creation I using bellow code:
> Map<String, Object> customArgs = new HashMap<>();
> customArgs.put("channelNumber", String.valueOf(channelNumber));
> ManagedChannel channel = ManagedChannelBuilder.forTarget(grpcUrl)
> .usePlaintext()
> .defaultLoadBalancingPolicy("round_robin")
> .enableRetry()
> .maxRetryAttempts(6)
> .defaultServiceConfig(customArgs)
> .build();
>
> And the Error msg I am getting is:
>
> RankingServiceSort EXCEPTION : UNAVAILABLE: 
> unavailableio.grpc.stub.ClientCalls|toStatusRuntimeException|262
> io.grpc.stub.ClientCalls|getUnchecked|243
> io.grpc.stub.ClientCalls|blockingUnaryCall|156
> proto.RankingServiceGrpc$RankingServiceBlockingStub|sortInventoryData|169
> RankingService.RankingGrpcConnector|GetInventoryRanking|80
>
> Please help us we are stuck here from 3-4 months, We are using aws grpc 
> supported ALB in between and these best practices though helped us in 
> reducing DeadLine Acceded issue but service Unavailable cases are not 
> getting reduced. Did now found any detailed documentation as well. We are 
> having 2 instances for this service and both CPU and memory and network 
> bandwidth is not at exhausted, used bellow 5%. 
>
> Thanks & Regards,
> Pawan Sharma
>

-- 
*::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachments are confidential and 
intended for the named recipient(s) only.E-mail transmission is not 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted,lost, destroyed, arrive late or incomplete, or may contain 
viruses in transmission. The e mail and its contents(with or without 
referred errors) shall therefore not attach any liability on the originator 
or redBus.com. Views or opinions, if any, presented in this email are 
solely those of the author and may not necessarily reflect the views or 
opinions of redBus.com. Any form of reproduction, dissemination, copying, 
disclosure, modification,distribution and / or publication of this message 
without the prior written consent of authorized representative of redbus. 
<http://redbus.in/>com is strictly prohibited. If you have received this 
email in error please delete it and notify the sender immediately.Before 
opening any email and/or attachments, please check them for viruses and 
other defects.*

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/308deba5-bacc-412c-99f5-6d1de7bb936dn%40googlegroups.com.

Reply via email to