See also
It is important to note that each action has a do_action() method, which accepts no arguments. This is the means by which all actions are executed.
Define the Alias object.
Parameters: |
|
---|
The list of actions to perform. Populated by curator.actions.Alias.add and curator.actions.Alias.remove
Create add statements for each index in ilo for alias, then append them to actions. Add any extras that may be there.
Parameters: | ilo – A curator.indexlist.IndexList object |
---|
Return a body string suitable for use with the update_aliases API call.
Instance variable. The Elasticsearch Client object derived from ilo
Run the API call update_aliases with the results of body()
Log what the output would be, but take no action.
Instance variable. Any extra things to add to the alias, like filters, or routing.
Instance variable The strftime parsed version of name.
Create remove statements for each index in ilo for alias, then append them to actions.
Parameters: | ilo – A curator.indexlist.IndexList object |
---|
Parameters: |
|
---|
Note
See: https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html
Instance variable. Populated at instance creation time. Value is index.routing.allocation. allocation_type . key . value
Instance variable. The Elasticsearch Client object derived from ilo
Change allocation settings for indices in index_list.indices with the settings in body.
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable How many seconds to wait between checks for completion.
Instance variable. Internal reference to wait_for_completion
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from ilo
Instance variable. Internal reference to delete_aliases
Close open indices in index_list.indices
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
For now, the cluster routing settings are hardcoded to be transient
Parameters: |
|
---|
Instance variable. An elasticsearch.Elasticsearch client object
Change cluster routing settings with the settings in body.
Log what the output would be, but take no action.
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable How many seconds to wait between checks for completion.
Instance variable. Internal reference to wait_for_completion
Parameters: |
|
---|
Instance variable. Extracted from the config yaml, it should be a dictionary of mappings and settings suitable for index creation.
Instance variable. An elasticsearch.Elasticsearch client object
Create index identified by name with settings in body
Log what the output would be, but take no action.
Instance variable. The parsed version of name
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from ilo
Delete indices in index_list.indices
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Instance variable. String value of master_timeout + ‘s’, for seconds.
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from slo
Delete snapshots in slo Retry up to retry_count times, pausing retry_interval seconds between retries.
Log what the output would be, but take no action.
Instance variable. The repository name derived from slo
Instance variable. Internally accessible copy of retry_count
Instance variable. Internally accessible copy of retry_interval
Instance variable. Internal reference to slo
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from ilo
Instance variable. Internally accessible copy of delay
forcemerge indices in index_list.indices
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Instance variable. Internally accessible copy of max_num_segments
Parameters: |
|
---|
Instance variable. Internal reference to index_settings
Instance variable. The Elasticsearch Client object derived from ilo
Log what the output would be, but take no action.
Instance variable. Internal reference to ignore_unavailable
Instance variable. Internal reference to ilo
Instance variable. Internal reference to preserve_settings
Parameters: | ilo – A curator.indexlist.IndexList object |
---|
Instance variable. The Elasticsearch Client object derived from ilo
Open closed indices in index_list.indices
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Parameters: |
|
---|
Instance variable. Internal reference to request_body
Instance variable. The Elasticsearch Client object derived from ilo
Execute elasticsearch.Elasticsearch.reindex() operation with the provided request_body and arguments.
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable. Internal reference to migration_prefix
Instance variable. Internal reference to migration_suffix
Instance variable. Internal reference to refresh
Instance variable. Internal reference to requests_per_second
Show what will run
Instance variable. Internal reference to slices
Instance variable. Internal reference to timeout, and add “s” for seconds.
Instance variable. Internal reference to wait_for_active_shards
Instance variable How many seconds to wait between checks for completion.
Instance variable. Internal reference to wait_for_completion
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from ilo
Instance variable. Internally accessible copy of count
Update the replica count of indices in index_list.indices
Log what the output would be, but take no action.
Instance variable. Internal reference to ilo
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable How many seconds to wait between checks for completion.
Instance variable. Internal reference to wait_for_completion
Parameters: |
|
---|
Instance variable. Populated at instance creation time from the other options
Instance variable. The Elasticsearch Client object derived from slo
Restore indices with options passed.
Log what the output would be, but take no action.
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable. Will use a provided snapshot name, or the most recent snapshot in slo
Also an instance variable version of rename_replacement but with Java regex group designations of $# converted to Python’s \\# style.
Instance variable version of rename_pattern
Instance variable version of rename_replacement
Log the state of the restore This should only be done if wait_for_completion is True, and only after completing the restore.
Instance variable. repository derived from slo
Instance variable. Internally accessible copy of skip_repo_fs_check
Instance variable. Internal reference to slo
Instance variable How many seconds to wait between checks for completion.
Parameters: |
|
---|---|
New_index : | The new index name |
Create a body from conditions and settings
Instance variable. The Elasticsearch Client object
Instance variable. Internal reference to conditions
Rollover the index referenced by alias name
Log what the output would be, but take no action.
This exists solely to prevent having to have duplicate code in both do_dry_run and do_action
Instance variable. Internal reference to new_index
Instance variable. Internal reference to extra_settings
Instance variable. Internal reference to wait_for_active_shards
Parameters: |
|
---|
Instance variable. The Elasticsearch Client object derived from ilo
Instance variable. Internal reference to delete_after
Show what a regular run would do, but don’t actually do it.
Instance variable. Internal reference to ilo
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Determine which data node name has the most available free space, and meets the other node filters settings.
Parameters: | client – An elasticsearch.Elasticsearch client object |
---|
Instance variable. Internal reference to node_filters
Instance variable. Internal reference to number_of_shards
Instance variable. Internal reference to post_allocation
Instance variable. Internal reference to shrink_node
Instance variable. Internal reference to shrink_prefix
Instance variable. Internal reference to shrink_suffix
Instance variable. How many seconds to wait between checks for completion.
Instance variable. Internal reference to wait_for_completion
Parameters: |
|
---|
Instance variable. Populated at instance creation time by calling curator.utils.create_snapshot_body with ilo.indices and the provided arguments: ignore_unavailable, include_global_state, partial
Instance variable. The Elasticsearch Client object derived from ilo
Snapshot indices in index_list.indices, with options passed.
Log what the output would be, but take no action.
Get the state of the snapshot
Instance variable. Internal reference to ilo
Instance variable. How long in seconds to wait_for_completion before returning with an exception. A value of -1 means wait forever.
Instance variable. The parsed version of name
Log the state of the snapshot
Instance variable. Internally accessible copy of repository
Instance variable. Internally accessible copy of skip_repo_fs_check
Instance variable. Internally accessible copy of wait_for_completion
Instance variable How many seconds to wait between checks for completion.