-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Configure JPA L2 cache coordination between instances on Openshift® / Kubernetes #8982
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a3cf312
Add JPA cache coordination using jgroups;
mshaposhnik 6018351
Revert logging level
mshaposhnik 6290fb5
fixup! Revert logging level
mshaposhnik 97829b4
Merge branch 'master' into jpa_coordination
mshaposhnik c31741b
Add kubernetes changes
mshaposhnik 840bd0f
Add helm plugin changes
mshaposhnik cc2b23d
Remove commented conf part
mshaposhnik 04a276c
Merge branch 'master' into jpa_coordination
mshaposhnik 195f2ff
Merge branch 'master' into jpa_coordination
mshaposhnik aca5188
Merge branch 'master' into jpa_coordination
mshaposhnik 54ef979
Merge branch 'master' into jpa_coordination
mshaposhnik 5cd39b3
merge woth master
mshaposhnik f8e9d93
Merge with master
mshaposhnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
52 changes: 52 additions & 0 deletions
52
assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/jgroups/che-tcp.xml
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- | ||
|
||
Copyright (c) 2012-2018 Red Hat, Inc. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
|
||
Contributors: | ||
Red Hat, Inc. - initial API and implementation | ||
|
||
--> | ||
<config xmlns="urn:org:jgroups" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.1.xsd"> | ||
<TCP | ||
bind_addr="match-interface:eth0" | ||
bind_port="${TCP_PORT:7800}" | ||
recv_buf_size="5M" | ||
send_buf_size="1M" | ||
max_bundle_size="64K" | ||
enable_diagnostics="true" | ||
thread_naming_pattern="cl" | ||
|
||
thread_pool.min_threads="0" | ||
thread_pool.max_threads="500" | ||
thread_pool.keep_alive_time="30000" /> | ||
|
||
<kubernetes.KUBE_PING | ||
labels="app=che" /> | ||
|
||
<MERGE2 min_interval="10000" | ||
max_interval="30000"/> | ||
<FD_SOCK/> | ||
<FD timeout="3000" max_tries="3"/> | ||
<VERIFY_SUSPECT timeout="1500"/> | ||
<BARRIER/> | ||
<pbcast.NAKACK2 use_mcast_xmit="false" | ||
discard_delivered_msgs="true"/> | ||
<UNICAST/> | ||
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" | ||
max_bytes="4M"/> | ||
<pbcast.GMS print_local_addr="true" join_timeout="3000" | ||
|
||
view_bundling="true"/> | ||
<UFC max_credits="2M" | ||
min_threshold="0.4"/> | ||
<MFC max_credits="2M" | ||
min_threshold="0.4"/> | ||
<FRAG2 frag_size="60K"/> | ||
<pbcast.STATE_TRANSFER/> | ||
</config> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you elaborate on whether there is a way to tweak this configuration in case service delivery team need to change something?
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 can probably move filename into property. Then, changing conf will be as simple as put new xml conf file under classpath and change that property. That's a good point.
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.
Or no... that's already module. Need to find out way. Maybe discuss with @riuvshin
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.
I see, thank you.