Skip to content

Investigate immediateFlush performance impact for the audit log #34321

@albertzaharovits

Description

@albertzaharovits

This was suggested by @bizybot here https://github.com/elastic/elasticsearch/pull/33894/files#r220517146 .

As long as we're not using async appenders, and currently we do not, we can enable
the log4j appender property named immediateFlush . This makes sure every log event
is written before the log() call returns. This increases the reliability of the audit log,
an important property, but it's performance impact has to be gauged first.

It is worth pointing out, that we might as well recommend enabling it in the docs, but not
actually enabling it on the default distribution, the reason being that we might not be able
to evaluate the performance impact accurately on each file system / OS combination and
parameters.

@danielmitterdorfer do you think rally can help with this performance evaluation?
Do you think this is actually something we can quantify given our current support matrix?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions