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
Optionally you may configure your `user`/`password` via environment variables. The corresponding `user` environment variable is `TRITONCACHE_REDIS_USERNAME` whereas the corresponding `password` environment variable is `TRITONCACHE_REDIS_PASSWORD`.
110
110
111
+
### TLS
112
+
113
+
Transport Layer Security (TLS) can be enabled in Redis and within the Triton Redis Cache, to do so you will need a TLS
114
+
enabled version of Redis, e.g. [OSS Redis](https://redis.io/docs/management/security/encryption/) or
115
+
[Redis Enterprise](https://docs.redis.com/latest/rs/security/tls/enable-tls/). You will also need to configure Triton Server to use TLS with Redis
116
+
through the following `--cache-config` TLS options.
| tls_enabled | Yes | set to `true` to enable TLS |
123
+
| cert | no | The certificate to use for TLS. |
124
+
| key | no | The certificate key to use for TLS. |
125
+
| cacert | No | The Certificate Authority certificate to use for TLS. |
126
+
| sni | No | Server name indication for TLS. |
127
+
111
128
## Monitoring and Observability
112
129
113
130
There are many ways to go about monitoring what's going on in Redis. One popular mode is to export metrics data from Redis to Prometheus, and use Grafana to observe them.
@@ -120,6 +137,7 @@ There are many ways to go about monitoring what's going on in Redis. One popular
120
137
You can try out the Redis Cache with Triton in docker:
121
138
122
139
* clone this repo: `git clone https://github.com/triton-inference-server/redis_cache`
* clone the Triton server repo: `git clone https://github.com/triton-inference-server`
124
142
* Add the following to: `docs/examples/model_repository/densenet_onnx/config.pbtxt`
125
143
```
@@ -140,7 +158,7 @@ Password: <MY API KEY>
140
158
> NOTE: Username: $oauthtoken in this context means that your username is literally $oauthtoken - your API key serves as the unique part of your credentials
141
159
* run `docker-compose build`
142
160
* run `docker-compose up`
143
-
* In a separate terminal run `docker run -it --rm --net=host nvcr.io/nvidia/tritonserver:23.03-py3-sdk`
161
+
* In a separate terminal run `docker run -it --rm --net=host nvcr.io/nvidia/tritonserver:23.06-py3-sdk`
144
162
* Run `/workspace/install/bin/image_client -m densenet_onnx -c 3 -s INCEPTION /workspace/images/mug.jpg`
145
163
* on the first run - this will miss the cache
146
164
* subsequent runs will pull the inference out of the cache
0 commit comments