Skip to content
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

Merged

Conversation

mandawilson
Copy link
Contributor

  • Updated ip addresses for redis servers
  • Changed ttl to 0 and added comments
  • Added spring profiles for redis and ehcache

Copy link
Contributor

@sheridancbio sheridancbio left a 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.
Copy link
Contributor

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"-->
Copy link
Contributor

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">
Copy link
Contributor

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

@sheridancbio sheridancbio merged commit a421b27 into cBioPortal:redis-cache-dev Jul 17, 2020
averyniceday pushed a commit to averyniceday/cbioportal that referenced this pull request Oct 19, 2020
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
sheridancbio pushed a commit to sheridancbio/cbioportal that referenced this pull request Oct 19, 2020
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
averyniceday pushed a commit to averyniceday/cbioportal that referenced this pull request Dec 7, 2020
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
averyniceday pushed a commit to averyniceday/cbioportal that referenced this pull request Jan 6, 2021
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
averyniceday pushed a commit to averyniceday/cbioportal that referenced this pull request Jan 6, 2021
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
averyniceday pushed a commit to averyniceday/cbioportal that referenced this pull request Jan 6, 2021
* updated ip addresses for redis servers
* changed ttl to 0 and added comments
* added spring profiles for redis and ehcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants