Tune IndexWriter options to allow for highly concurrent usage

Description

The new IndexWriter in Lucene 4 uses a limited set of affinity tokens to hand to each thread.
The default is only 8, which gets exhausted quite easily in the way we use the IndexWriter; also there seems to be no high penalty in proposing an higher value other than a slight memory cost.

I'm proposing a default of 32 and to make this a configurable setting.

Environment

None

Activity

Show:
Sanne Grinovero
March 27, 2014, 5:14 PM

I've actually decided to not change the default, as we never do that normally.
32 seems to be a better value for Infinispan only, so Infinispan will have the option to change it but we don't need to do that in the engine.

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure