aeraki-mesh / aeraki-mesh/meta-protocol-proxy

Memcached protocol doesn't work

未關閉
#126 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
83
分支
31
PR 合併指標
30 天內沒有已合併 PR

描述

Hi, we implemented memcached protocol in aeraki and used DeathStarBenchmark/hotel-reservation to test.

Meta-protocol-proxy implementation: https://github.com/yizhengx/meta-protocol-proxy/tree/local-queue/src/application_protocols/memcached

We built it using bazel following the instructions in the document.

Example yamls for memcached services
- deployment
```
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: memcached-rate
name: memcached-rate
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: memcached-rate
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
sidecar.istio.io/statsInclusionPrefixes: cluster.outbound,cluster_manager,listener_manager,http_mixer_filter,tcp_mixer_filter,server,cluster.xds-grp,listener,connection_manager
sidecar.istio.io/statsInclusionRegexps: http.*
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: yizhengx/aeraki-proxy:rate-limit-cas # custom image we built
creationTimestamp: null
labels:
io.kompose.service: memcached-rate
spec:
containers:
- env:
- name: MEMCACHED_CACHE_SIZE
value: "128"
- name: MEMCACHED_THREADS
value: "2"
image: memcached
name: hotel-reserv-rate-mmc
ports:
- containerPort: 11211
resources:
requests:
cpu: 100m
limits:
cpu: 1000m
restartPolicy: Always
status: {}
```
- service
```
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: memcached-rate
name: memcached-rate
spec:
ports:
- name: tcp-metaprotocol-memcached-memcached-rate
protocol: TCP
port: 11211
targetPort: 11211
selector:
io.kompose.service: memcached-rate
status:
loadBalancer: {}
```

I really appreciate any advice on this including what we missed and how we can find the root cause. Thanks!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。