-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create common table if needed (#828)
We should create the common table if there is an index using it. In other cases, it emits unnecessary logs. It fixes a bug while processing the config.
- Loading branch information
Showing
6 changed files
with
170 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
installationId: #HYDROLIX_REQUIRES_THIS | ||
frontendConnectors: | ||
- name: elastic-ingest | ||
type: elasticsearch-fe-ingest | ||
config: | ||
listenPort: 8080 | ||
- name: elastic-query | ||
type: elasticsearch-fe-query | ||
config: | ||
listenPort: 8080 | ||
backendConnectors: | ||
- name: E | ||
type: elasticsearch | ||
config: | ||
url: "http://elasticsearch:9200" | ||
user: elastic | ||
password: quesmaquesma | ||
- name: C | ||
type: clickhouse-os | ||
config: | ||
url: "clickhouse://clickhouse:9000" | ||
ingestStatistics: true | ||
processors: | ||
- name: QP | ||
type: quesma-v1-processor-query | ||
config: | ||
indexes: | ||
logs-1: | ||
target: [ E ] | ||
logs-2: | ||
target: [ E ] | ||
logs-3: | ||
target: [ C, E ] | ||
logs-4: | ||
useCommonTable: true | ||
target: [ C ] | ||
logs-5: | ||
useCommonTable: true | ||
target: [ C ] | ||
"*": | ||
target: [ E ] | ||
|
||
- name: IP | ||
type: quesma-v1-processor-ingest | ||
config: | ||
indexes: | ||
logs-1: | ||
target: [ E ] | ||
logs-2: | ||
target: [ E ] | ||
logs-3: | ||
target: [ C, E ] | ||
logs-4: | ||
useCommonTable: true | ||
target: [ C ] | ||
"*": | ||
target: [ E ] | ||
logs-5: | ||
useCommonTable: true | ||
target: [ ] | ||
|
||
pipelines: | ||
- name: my-elasticsearch-proxy-read | ||
frontendConnectors: [ elastic-query ] | ||
processors: [ QP ] | ||
backendConnectors: [ E, C ] | ||
- name: my-elasticsearch-proxy-write | ||
frontendConnectors: [ elastic-ingest ] | ||
processors: [ IP ] | ||
backendConnectors: [ E, C ] |
53 changes: 53 additions & 0 deletions
53
quesma/quesma/config/test_configs/invalid_dual_target.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
installationId: #HYDROLIX_REQUIRES_THIS | ||
frontendConnectors: | ||
- name: elastic-ingest | ||
type: elasticsearch-fe-ingest | ||
config: | ||
listenPort: 8080 | ||
- name: elastic-query | ||
type: elasticsearch-fe-query | ||
config: | ||
listenPort: 8080 | ||
backendConnectors: | ||
- name: E | ||
type: elasticsearch | ||
config: | ||
url: "http://elasticsearch:9200" | ||
user: elastic | ||
password: quesmaquesma | ||
- name: C | ||
type: clickhouse-os | ||
config: | ||
url: "clickhouse://clickhouse:9000" | ||
ingestStatistics: true | ||
processors: | ||
- name: QP | ||
type: quesma-v1-processor-query | ||
config: | ||
indexes: | ||
invalid: | ||
target: [ E,C ] | ||
"*": | ||
target: [ E ] | ||
|
||
- name: IP | ||
type: quesma-v1-processor-ingest | ||
config: | ||
indexes: | ||
invalid: | ||
target: [ C, E ] | ||
"*": | ||
target: [ E ] | ||
logs-5: | ||
useCommonTable: true | ||
target: [ ] | ||
|
||
pipelines: | ||
- name: my-elasticsearch-proxy-read | ||
frontendConnectors: [ elastic-query ] | ||
processors: [ QP ] | ||
backendConnectors: [ E, C ] | ||
- name: my-elasticsearch-proxy-write | ||
frontendConnectors: [ elastic-ingest ] | ||
processors: [ IP ] | ||
backendConnectors: [ E, C ] |