forked from opensearch-project/terraform-provider-opensearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support slow logs in cluster settings (opensearch-project#211)
Signed-off-by: Prudhvi Godithi <[email protected]>
- Loading branch information
1 parent
3e84564
commit d86d6a3
Showing
9 changed files
with
175 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,5 @@ EOF | |
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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 |
---|---|---|
|
@@ -111,3 +111,5 @@ EOF | |
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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 |
---|---|---|
|
@@ -39,3 +39,5 @@ resource "opensearch_data_stream" "foo" { | |
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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,25 @@ | ||
# Configure the OpenSearch provider | ||
terraform { | ||
required_providers { | ||
opensearch = { | ||
source = "registry.terraform.io/opensearch-project/opensearch" | ||
} | ||
} | ||
} | ||
|
||
provider "opensearch" { | ||
url = "http://127.0.0.1:9200" | ||
username = "admin" | ||
password = "myStrongPassword123@456" | ||
} | ||
|
||
resource "opensearch_cluster_settings" "persistent" { | ||
cluster_max_shards_per_node = 10 | ||
cluster_search_request_slowlog_level = "WARN" | ||
cluster_search_request_slowlog_threshold_warn = "10s" | ||
cluster_search_request_slowlog_threshold_info = "5s" | ||
cluster_search_request_slowlog_threshold_debug = "2s" | ||
cluster_search_request_slowlog_threshold_trace = "100ms" | ||
cluster_routing_allocation_awareness_attributes = "zone" | ||
cluster_routing_allocation_awareness_force_zone_values = ["zoneA", "zoneB"] | ||
} |
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