Skip to content

Commit

Permalink
Added SIFS configuration
Browse files Browse the repository at this point in the history
* Added files with SIFS for DIST and REPL;
* Use a small value in `memory` configuration.
  • Loading branch information
jabolina committed Jul 25, 2024
1 parent 7fc57ab commit ffd7971
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
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>

0 comments on commit ffd7971

Please sign in to comment.