-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added spring profiles for redis and ehcache #7696
Added spring profiles for redis and ehcache #7696
Conversation
mandawilson
commented
Jul 16, 2020
- Updated ip addresses for redis servers
- Changed ttl to 0 and added comments
- Added spring profiles for redis and ehcache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging this code to allow further development in the feature branch. Some features still need to be adapted, and maybe the use of spring profiles will be examined / tested. But this also includes the naming of caches based on app-types and other configuration improvements.
@@ -344,22 +344,22 @@ This gene set will add the following in the query box: | |||
# Ehcache Settings | |||
cBioPortal is supported on the backend with Ehcache. The configuration, size, and location of these caches are configurable from within portal.properties through the following properties. | |||
|
|||
The cache type is set using `ehcache.cache_type`. Valid values are `none`, `heap` (heap-only), `disk` (disk-only), and `hybrid` (disk + heap). By default, `ehcache.cache_type` is set to `none` which disables the cache. When the cache is disabled, no responses will be stored in the cache. | |||
The cache type is set using `persistence.cache_type`. Valid values are `no-cache`, `redis` (redis), `ehache-heap` (ehcache heap-only), `ehache-disk` (ehcache disk-only), and `ehache-hybrid` (ehcache disk + heap). By default, `persistence.cache_type` is set to `no-cache` which disables the cache. When the cache is disabled, no responses will be stored in the cache. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos : ehache-heap, ehache-disk, ehache-hybrid
we can fix this in a follow up PR
EhCacheStatistics is autowired, and requires a javax.cache.CacheManager | ||
so all (or most) of these beans need to be created even if ehcache is not running | ||
--> | ||
<!--beans profile="ehcache-disk,ehcache-heap,ehcache-hybrid"--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we still need to work these beans out
<bean id="customKeyGenerator" class="org.cbioportal.persistence.util.CustomKeyGenerator"/> | ||
|
||
<!--bean id="ehCacheStatistics" class="org.cbioportal.persistence.util.EhCacheStatistics"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to work out the wiring of a cache statistics service (maybe a stub) for redis
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache
* updated ip addresses for redis servers * changed ttl to 0 and added comments * added spring profiles for redis and ehcache