[grpc-io] [golang] MaxMsgSize error not propagated back through to client

2017-01-19 Thread sean
I'm seeing an error because my client is trying to write a message that is bigger than the `MaxMsgSize` specified when running a GRPC server. I want to return the descriptive message that I see on the server side when reading off the stream: ``` rpc error: code = 13 desc = grpc: received

Re: [grpc-io] using CallCredentials from Python

2017-01-19 Thread JI Ioannidis
Are SSL credentials supported by the python client yet? IOW, if my client does creds = grpc.ssl_channel_credentials( root_certificates=ca.crt, private_key=client.key, certificate_chain=client.crt) how can the server access the client cert? I already have mechanisms in place

Re: [grpc-io] gRFC A2: Service Configs in DNS

2017-01-19 Thread 'Mark D. Roth' via grpc.io
It's obviously going to have to be a heuristic, since we don't have any way of knowing the full set of clients a priori. I was thinking that we would take a hash of the client's hostname and pid, which unfortunately wouldn't really be that deterministic. But I'd welcome suggestions for a more

[grpc-io] gRPC multiple services in cpp async server

2017-01-19 Thread AK
I know there is an example helloworld program in gRPC source. However, being new to this, I don't understand how to write more than one async services in the server. The example here talks about

[grpc-io] Re: Go grpc syscall.write cause high cpu usage under not much heavy load

2017-01-19 Thread apolcyn via grpc.io
This looks like an issue that has been seen in grpc-go earlier. What types of calls are these - unary? or streaming? Indeed for unary calls, each call is currently flushing writes after sending headers and status for each call. The message portions of unary and streaming calls (split up into

Re: [grpc-io] gRFC A2: Service Configs in DNS

2017-01-19 Thread 'Craig Tiller' via grpc.io
How does the percentage field work? Do clients roll a die to determine if they're in the canary subset? Or is there a deterministic way of determining this? On Thu, Jan 19, 2017 at 8:57 AM 'Mark D. Roth' via grpc.io < grpc-io@googlegroups.com> wrote: > I've created a gRFC describing how service

[grpc-io] Re: gRFC A1: HTTP CONNECT proxy support

2017-01-19 Thread 'Mark D. Roth' via grpc.io
Julien, The gRFC process says that all discussion should happen in this thread, rather than in the PR. So I'll reply to your comments here. I agree with you that the proxy mapper could set the HTTP CONNECT argument to a server name

[grpc-io] Re: Using gRPC on AWS

2017-01-19 Thread alex via grpc.io
gRPC "works" in AWS. That is, you can run gRPC services on EC2 nodes and have them connect to other nodes, and everything is fine. If you are using AWS for easy access to hardware then all is fine. What doesn't work is ELB (aka CLB), and ALBs. Neither of these support HTTP/2 (h2c) in a way

[grpc-io] python gRPC: set max_message_length for server or listen port.

2017-01-19 Thread Виталий Андросенко
I can set max_message_length for client: grpc.insecure_channel(target=address or self.DEFAULT_ADDRESS, options=[('grpc.max_message_length', max_message_length)]) How can I set max_message_length for server or listen port use python ??? Tanks all for

[grpc-io] Re: Go grpc syscall.write cause high cpu usage under not much heavy load

2017-01-19 Thread Zeymo Wang
version go 1.7 On Thursday, January 19, 2017 at 5:25:36 PM UTC+8, Zeymo Wang wrote: > > I fork grpc-go uses as gateway just enioy h2c benifit (also remove pb IDL > feature),which I implement 0-RTT TLS( cgo invoke libsodium) repalce the > standard TLS and handle request just do http request to

[grpc-io] Load balance for long running calls

2017-01-19 Thread Jozef Vilcek
Hello, I have a long running grpc call, where client constantly streams data to ingestion server. There are multiple instances of ingestion servers and client can choose any of them. I would like each client to load balance data between available servers. I see that grpc has a load balancer,