You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SeldonDeployment is routing kafka messages to the REST endpoint even though the transport defined as gRPC.
We were following the various Seldon + Kafka examples, but notably none are using the protocol: seldon, transport: grpc and serverType: kafka combination.
The seldon-container-engine log entry 2022-05-17T11:56:27.344Z DEBUG JSONRestClient Calling HTTP {"URL": "http://localhost:9000/predict"}
confirms that the kafka consumer is using the JSONRestClient instead of the Grpc one.
Describe the bug
The SeldonDeployment is routing kafka messages to the REST endpoint even though the transport defined as gRPC.
We were following the various Seldon + Kafka examples, but notably none are using the
protocol: seldon
,transport: grpc
andserverType: kafka
combination.Our
SeldonDeployment
with manifest-snippet:deploys okay and we can send gRPC requests directly to the service through port 5000.
Tailing the
seldon-container-engine
logs gives messages like:The
Start http kafka graph
INFO log suggests the executor/api/kafka/server.go is creating arest.NewJSONRestclient
instead of a seldon.NewSeldonGrpcClient`, as on server.go#L71.The
seldon-container-engine
log entry2022-05-17T11:56:27.344Z DEBUG JSONRestClient Calling HTTP {"URL": "http://localhost:9000/predict"}
confirms that the kafka consumer is using the JSONRestClient instead of the Grpc one.
Looking through the seldon-core code, I think this can be traced to the operator/controllers/seldondeployment_engine.go#L187.
The
createExecutorContainer
extracts theprotocol
andserverType
from the deployment spec, but not the transport.Finally, the main executor uses the default transport, set to
rest
instead of having the spec passed-through.Expected behaviour
gRPC messages serialized to a kafka topic should be forwarded to a gRPC client, not the JSON REST one.
Environment
Cloud Provider: AWS and k3d
Kubernetes Cluster Version
Deployed Seldon System Images:
Logs of your model (tail, upon publishing a gRPC-encoded message):
The text was updated successfully, but these errors were encountered: