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

Forwarding of compressed gRPC requests #874

Open
alexdohm opened this issue May 31, 2022 · 1 comment
Open

Forwarding of compressed gRPC requests #874

alexdohm opened this issue May 31, 2022 · 1 comment

Comments

@alexdohm
Copy link

I'm trying to forward gRPC requests that have been compressed with gzip, but it looks like Fabio is not forwarding the request. I've seen under the following link, that Fabio has the functionality to forward compressed HTTP requests, so I'm wondering if it's possible with gRPC.

https://fabiolb.net/feature/http-compression/

below is my nomad file. I have also set theAccept-Encoding: gzip header on the client

The error we are receiving on our test client when trying to make a request to the server is :
grpc: Decompressor is not installed for grpc-encoding "gzip"

job "fabio" {
  datacenters = ["dc1"]
  type        = "system"

  group "fabio" {
    network {
      port "lb" {
        static = 9999
      }
      port "ui" {
        static = 9998
      }
      port "grpc" {
        static = 8888
      }
    }
    task "fabio" {
      driver = "docker"
      config {
        image        = "fabiolb/fabio"
        network_mode = "host"
        ports        = ["lb", "ui", "grpc"]
      }
      env {
        proxy_addr             = ":9999;proto=http,:8888;proto=grpc"
        proxy_gzip_contenttype = "^.*$"
      }
      resources {
        cpu    = 200
        memory = 128
      }
    }
  }
}
@nathanejohnson
Copy link
Member

It looks like that's not being registered when the grpc server is being set up. It's pretty easy to register the gzip as an available compression option, but I don't have a good way to test if it's working. If I made a one-off build available on docker hub would you be able to test that way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants