Skip to content

Added SIFS configuration #29

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions benchmark_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"write_ratio": 1.0
}
},
{
"name": "hotrod-benchmark",
"cache": "dist-sifs.xml",
"arguments": {
"read_ratio": 0.8,
"write_ratio": 0.2
}
},
{
"name": "hotrod-benchmark",
"cache": "repl-cache.xml",
Expand All @@ -47,6 +55,14 @@
"read_ratio": 0.0,
"write_ratio": 1.0
}
},
{
"name": "hotrod-benchmark",
"cache": "repl-sifs.xml",
"arguments": {
"read_ratio": 0.8,
"write_ratio": 0.2
}
}
]
}
17 changes: 17 additions & 0 deletions roles/server/files/dist-sifs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<distributed-cache owners="2"
segments="256"
mode="SYNC"
statistics="true">
<encoding media-type="application/x-protostream"/>
<expiration lifespan="500000"/>

<!-- Max-count of 2000 to force entries to disk. -->
<!-- The benchmark accepts a custom number of entries, by default is 4000. -->
<memory max-count="1" when-full="REMOVE"/>
<persistence passivation="false">
<file-store shared="false">
<data path="data"/>
<index path="index"/>
</file-store>
</persistence>
</distributed-cache>
15 changes: 15 additions & 0 deletions roles/server/files/repl-sifs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<replicated-cache segments="256"
mode="SYNC"
statistics="true">
<encoding media-type="application/x-protostream"/>
<expiration lifespan="500000"/>

<!-- Max-count of 1 to force entries to disk. -->
<memory max-count="1" when-full="REMOVE"/>
<persistence passivation="true">
<file-store shared="false">
<data path="data"/>
<index path="index"/>
</file-store>
</persistence>
</replicated-cache>