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

River: A pluggable river (indexer like) support #377

Closed
kimchy opened this issue Sep 20, 2010 · 1 comment
Closed

River: A pluggable river (indexer like) support #377

kimchy opened this issue Sep 20, 2010 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Sep 20, 2010

A river is a pluggable entity running within elasticsearch cluster pulling data (or being pushed with data) that is then indexed into the cluster.

A river is composed of a unique name and a type. The type is the type of the river (out of the box, there is the dummy river that simply logs that its running). The name uniquely identifies the river within the cluster. For example, one can run an river called my_river with type dummy.

Rivers are singletons within the cluster. They get allocated automatically to one of the nodes and run. If that node fails, an river will be automatically allocated to another node.

River allocation on nodes can be controlled on each node. The node.river can be set to _none_ disabling any river allocation to it. The node.river can also include a comma separated list of either river names or types controlling the rivers allowed to run on it. For example: my_river1,my_river2, or dummy,twitter.

Rivers require both meta data (what type they are, and additional information) that forms the "settings" of the river, and possibly need to store runtime state (indexed up to data X, continue from it in case of failover). Everything is driven by working an internal index called _river.

In that index (_river), each _type in the index (mapping) corresponds to an river name (do not confuse it with the river type). The _meta document id is required and includes the settings of that river. It must include at least the river type. In order to delete a river, a simple delete of the mapping type (river name) can be done.

With the fact that the river(s) information is stored as an index, it is fully persistent, and allows for very frequent state storage (under one or more documents).

Sounds confusing, but its really simple, here is an example for creating the dummy river with the name my_river:

curl -XPUT 'localhost:9200/_river/my_river/_meta' -d '{
    "type" : "dummy"
}'

And deleting the river is:

curl -XDELETE 'localhost:9200/_river/my_river'    
@kimchy
Copy link
Member Author

kimchy commented Sep 20, 2010

implemented.

mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
…#377)

Revert "Merged in dev/can/MPC-3974-eventbridge-scaling-2021-12-15 (pull request elastic#362)"

* Revert "Merged in dev/can/MPC-3974-eventbridge-scaling-2021-12-15 (pull request elastic#362)"

This reverts commit 84e3710.


Approved-by: Gideon Avida
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
Revert "Merged in dev/can/revert-ems-scaling-2022-12-05 (pull request elastic#377)"

* Revert "Merged in dev/can/revert-ems-scaling-2022-12-05 (pull request elastic#377)"

This reverts commit 4bfc901.


Approved-by: Gideon Avida
costin pushed a commit that referenced this issue Dec 6, 2022
🤖 ESQL: Merge upstream
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
Add --on-error=abort to night-rally by default. Remove all "on-error": "abort" from race configs.

Closes: elastic#377
Closes: elastic#439
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant