Skip to content

Why the config 'flushInterval' in ’application.yml‘ is bound to "index.refresh_interval"? #4699

@coreyho

Description

@coreyho

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Feature or performance improvement

Question

Why the config 'flushInterval' in ’application.yml‘ is bound to "index.refresh_interval"?

org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.StorageEsInstaller#createSetting
setting.put("index.refresh_interval", record ? TimeValue.timeValueSeconds(10).toString() : TimeValue.timeValueSeconds(config.getFlushInterval()).toString());

The config also is bound to bulk flush interval in 'org.apache.skywalking.oap.server.library.module.ServiceNotProvidedException' ?

 this.registerServiceImplementation(IBatchDAO.class, new BatchProcessEsDAO(elasticSearch7Client, config.getBulkActions(), config.getFlushInterval(), config.getConcurrentRequests()));

These are two different configuration items.
What does this config mean?



Requirement or improvement

Adding more config about elasticsearch such as 'index.merge.scheduler.max_thread_count' which is important and necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionEnd user question and discussion.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions