On 16 Sep 2014, at 14:21, Mircea Markus <mmar...@redhat.com> wrote: > > On Sep 16, 2014, at 13:11, Tristan Tarrant <ttarr...@redhat.com> wrote: > >>> Hey, >>> >>> I have been looking at the differences between default values in the XSD vs >>> the default values in the configuration builders. [1] I created a list of >>> differences and talked to Dan about his suggestion for the defaults. The >>> numbers in parentheses are Dan's suggestions, but he also asked me to post >>> here to get a wider set of opinions on these values. This list is based on >>> the code used in infinispan-core, so I still need to go through the server >>> code to check the default values there. >>> >>> 1) For locking, the code has concurrency level set to 32, and the XSD has >>> 1000 (32) >>> 2) For eviction: >>> a) the code has max entries set to -1, and the XSD has 10000 (-1) >>> b) the code has interval set to 60000, and the XSD has 5000 (60000) >>> 3) For async configuration: >>> a) the code has queue size set to 1000, and the XSD has 0 (0) >>> b) the code has queue flush interval set to 5000, and the XSD has 10 (10) >>> c) the code has remote timeout set to 15000, and the XSD has 17500 (15000) >>> 4) For hash, the code has number of segments set to 60, and the XSD has 80 >>> (60) >>> 5) For l1, the code has l1 cleanup interval set to 600000, and the XSD has >>> 60000 (60000) >>> >>> Please let me know if you have any opinions on these default values, and >>> also if you have any ideas for avoiding these differences in the future. It >>> seems like there are two possibilities at this point: >>> >>> 1) Generating the XSD from the source code >> Impractical without a ton of annotations, since the builder structure is >> very different from the XSD structure. > > In past, schema used to be generated from annotations on the configuration > objects. I don't know why we stopped doing that, though - Vladimir might > comment more.
That happened when we moved away from JAXB. History: https://issues.jboss.org/browse/ISPN-1065 Cheers, > > Cheers, > -- > Mircea Markus > Infinispan lead (www.infinispan.org) > > > > > > _______________________________________________ > infinispan-dev mailing list > infinispan-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev -- Galder Zamarreño gal...@redhat.com twitter.com/galderz _______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev