-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactoring steve cache (#6278)
* feat: caching with gcache instead of sync.Map * fix: slow request * feat: add cache configuration information to bootstrap * perf: go fmt * feat: setting environment variables * feat: init when create steve cache and using the built-in method to get Internal Client Context * feat: note yaml config * feat: log more error details * feat: log more error details
- Loading branch information
Showing
5 changed files
with
141 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,9 +371,13 @@ erda.dop.rule.action.dingtalkworknotice: { } | |
#erda.core.org: {} | ||
|
||
########### cmp | ||
cmp: { } | ||
cmp: | ||
# steve cache time to live, default 10 min | ||
cache_ttl: ${CMP_STEVE_CACHE_TTL:10m} | ||
# steve cache total size (MB), default 64MB | ||
cache_size: ${CMP_STEVE_CACHE_SIZE:64} | ||
[email protected]: | ||
addr: "${MONITOR_GRPC_ADDR:monitor:7080}" | ||
addr: "${MONITOR_GRPC_ADDR:monitor:7080}"xwxxx | ||
block: false | ||
erda.core.monitor.metric-client: { } | ||
[email protected]: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.