File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -186,25 +186,27 @@ func newServer(ctx context.Context) (server.RunnableServer, error) {
186
186
server .WithMetricsAPI (util.HTTPServerConfig {
187
187
HTTPAddress : "localhost:50000" ,
188
188
HTTPEnabled : true }),
189
- //server.WithDispatchCacheConfig(server.CacheConfig{
190
- // Name: "DispatchCache",
191
- // Metrics: true,
192
- // Enabled: true,
193
- //}),
194
- //server.WithNamespaceCacheConfig(server.CacheConfig{
195
- // Name: "NamespaceCache",
196
- // //MaxCost: "",
197
- // //NumCounters: 0,
198
- // Metrics: true,
199
- // Enabled: true,
200
- //}),
201
- //server.WithClusterDispatchCacheConfig(server.CacheConfig{
202
- // Name: "ClusterCache",
203
- // //MaxCost: "",
204
- // //NumCounters: 0,
205
- // Metrics: true,
206
- // Enabled: true,
207
- //}),
189
+ server .WithDispatchCacheConfig (server.CacheConfig {
190
+ Name : "DispatchCache" ,
191
+ MaxCost : "70%" ,
192
+ NumCounters : 100_000 ,
193
+ Metrics : true ,
194
+ Enabled : true ,
195
+ }),
196
+ server .WithNamespaceCacheConfig (server.CacheConfig {
197
+ Name : "NamespaceCache" ,
198
+ MaxCost : "32MiB" ,
199
+ NumCounters : 1_000 ,
200
+ Metrics : true ,
201
+ Enabled : true ,
202
+ }),
203
+ server .WithClusterDispatchCacheConfig (server.CacheConfig {
204
+ Name : "ClusterCache" ,
205
+ MaxCost : "70%" ,
206
+ NumCounters : 100_000 ,
207
+ Metrics : true ,
208
+ Enabled : true ,
209
+ }),
208
210
server .WithDatastore (ds ),
209
211
server .WithDispatchClientMetricsPrefix ("coder_client" ),
210
212
server .WithDispatchClientMetricsEnabled (true ),
You can’t perform that action at this time.
0 commit comments