Simulate Infinispan Metrics Nanosecond

Cache Config

<?xml version="1.0"?>
<replicated-cache name="GEN_MD_ACCOUNT" mode="SYNC" remote-timeout="600000" statistics="true">
	<encoding media-type="application/x-protostream"/>
	<locking concurrency-level="25000" isolation="READ_COMMITTED" acquire-timeout="3000000" striping="false"/>
	<transaction mode="NONE" auto-commit="true" stop-timeout="30000" locking="OPTIMISTIC" reaper-interval="30000" complete-timeout="30000" notifications="true"/>
	<query default-max-results="20" hit-count-accuracy="10"/>
	<indexing enabled="true" storage="local-heap">
		<indexed-entities>
			<indexed-entity>default.GenMdAccountEntity</indexed-entity>
		</indexed-entities>
	</indexing>
	<state-transfer timeout="600000" chunk-size="500" await-initial-transfer="true"/>
	<partition-handling when-split="ALLOW_READS" merge-policy="NONE"/>
</replicated-cache>

How to Generate Data

$ curl -kv http://localhost:8080/generate-md-account
*   Trying [::1]:8080...
* Connected to localhost (::1) port 8080
> GET /generate-md-account HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Sat, 24 May 2025 15:25:25 GMT
<
* Connection #0 to host localhost left intact
{"status":"success"}                

How to do Queries

$ curl -kv http://localhost:8080/query-md-account 
*   Trying [::1]:8080...
* Connected to localhost (::1) port 8080
> GET /query-md-account HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Sat, 24 May 2025 15:38:29 GMT
<
* Connection #0 to host localhost left intact
{"status":"success"}