Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase max compilation rate for Filebeat modules tests #9777

Merged
merged 3 commits into from
Dec 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,74 +3,69 @@
"@timestamp": "2017-07-31T13:36:43.000Z",
"event.dataset": "log",
"event.module": "postgresql",
"event.timezone": "EST",
"input.type": "log",
"log.level": "LOG",
"log.offset": 0,
"message": "2017-07-31 13:36:43 EST [835-1] LOG: autovacuum launcher started",
"postgresql.log.core_id": "1",
"postgresql.log.level": "LOG",
"postgresql.log.message": "autovacuum launcher started",
"postgresql.log.thread_id": "835",
"message": "autovacuum launcher started",
"postgresql.log.core_id": 1,
"postgresql.log.timestamp": "2017-07-31 13:36:43",
"postgresql.log.timezone": "EST"
"process.pid": 835
},
{
"@timestamp": "2017-07-31T13:36:44.000Z",
"event.dataset": "log",
"event.module": "postgresql",
"event.timezone": "EST",
"input.type": "log",
"log.level": "LOG",
"log.offset": 66,
"message": "2017-07-31 13:36:44 EST [832-1] LOG: checkpoints are occurring too frequently (25 seconds apart)",
"postgresql.log.core_id": "1",
"postgresql.log.level": "LOG",
"postgresql.log.message": "checkpoints are occurring too frequently (25 seconds apart)",
"postgresql.log.thread_id": "832",
"message": "checkpoints are occurring too frequently (25 seconds apart)",
"postgresql.log.core_id": 1,
"postgresql.log.timestamp": "2017-07-31 13:36:44",
"postgresql.log.timezone": "EST"
"process.pid": 832
},
{
"@timestamp": "2017-07-31T13:46:02.000Z",
"event.dataset": "log",
"event.module": "postgresql",
"event.timezone": "EST",
"input.type": "log",
"log.level": "HINT",
"log.offset": 164,
"message": "2017-07-31 13:46:02 EST [832-2] HINT: Consider increasing the configuration parameter \"max_wal_size\".",
"postgresql.log.core_id": "2",
"postgresql.log.level": "HINT",
"postgresql.log.message": "Consider increasing the configuration parameter \"max_wal_size\".",
"postgresql.log.thread_id": "832",
"message": "Consider increasing the configuration parameter \"max_wal_size\".",
"postgresql.log.core_id": 2,
"postgresql.log.timestamp": "2017-07-31 13:46:02",
"postgresql.log.timezone": "EST"
"process.pid": 832
},
{
"@timestamp": "2017-07-31T13:46:23.000Z",
"event.dataset": "log",
"event.module": "postgresql",
"event.timezone": "EST",
"input.type": "log",
"log.level": "FATAL",
"log.offset": 267,
"message": "2017-07-31 13:46:23 EST [768-1] postgres@postgres FATAL: the database system is starting up",
"postgresql.log.core_id": "1",
"message": "the database system is starting up",
"postgresql.log.core_id": 1,
"postgresql.log.database": "postgres",
"postgresql.log.level": "FATAL",
"postgresql.log.message": "the database system is starting up",
"postgresql.log.thread_id": "768",
"postgresql.log.timestamp": "2017-07-31 13:46:23",
"postgresql.log.timezone": "EST",
"postgresql.log.user": "postgres"
"process.pid": 768,
"user.name": "postgres"
},
{
"@timestamp": "2017-07-31T13:46:55.000Z",
"event.dataset": "log",
"event.module": "postgresql",
"event.timezone": "EST",
"input.type": "log",
"log.level": "FATAL",
"log.offset": 360,
"message": "2017-07-31 13:46:55 EST [771-1] postgres@postgres FATAL: the database system is starting up",
"postgresql.log.core_id": "1",
"message": "the database system is starting up",
"postgresql.log.core_id": 1,
"postgresql.log.database": "postgres",
"postgresql.log.level": "FATAL",
"postgresql.log.message": "the database system is starting up",
"postgresql.log.thread_id": "771",
"postgresql.log.timestamp": "2017-07-31 13:46:55",
"postgresql.log.timezone": "EST",
"postgresql.log.user": "postgres"
"process.pid": 771,
"user.name": "postgres"
}
]
8 changes: 8 additions & 0 deletions filebeat/tests/system/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ def init(self):

self.index_name = "test-filebeat-modules"

body = {
"transient": {
"script.max_compilations_rate": "1000/1m"
}
}

self.es.transport.perform_request('PUT', "/_cluster/settings", body=body)

@parameterized.expand(load_fileset_test_cases)
@unittest.skipIf(not INTEGRATION_TESTS,
"integration tests are disabled, run with INTEGRATION_TESTS=1 to enable them.")
Expand Down