Hi Galder,
thank you for the review. My answers are below inline.
Il 04/11/11 11:02, Galder Zamarreño ha scritto:
Hi all,
I had the chance to look at the TPCC radargun plug-in you've built (https://github.com/sebastianopeluso/radargun.git - branch TPCC) and I had some comments to make:
1. Instead of using divisions for converting time units, it'd be better to use TimeUnit conversions to make the code more readable.
Ok. I will adopt TimeUnit.
2. To make the test run faster, it'd be interesting to transform Order...etc to use Infinispan Externalizers but that's not portable to other frameworks. So, implementing Externalizable could be a good middle ground.
Thank you for the suggestion. I will implement Externalizable interface
for the TPC-C domain objects.
3. Is TpccPopulationStage executed in each slave? Or in single slave? Seems like it's only executed in one of the slaves? If so that's fine cos it'd replicate to all right?
This is partially true. Each slave populates a slice of the data
container in a such a way that, for each pair of distinct slaves s1, s2,
if s1 populates the slice c1 and s2 populates the slice c2, then the
intersection between c1 and c2 is empty.
In this way we try to parallelize as much as possible cache loading, we
don't perform population in a transactional context and if the cache is
fully replicated then at the end of the population stage each node will
store all loaded data.
4. Has this TPCC benchmark code been run with Infinispan 4?
I ran it also on top of Infinispan 5.