manticoresoftware / manticoresearch

Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon
https://manticoresearch.com
GNU General Public License v3.0
9.07k stars 509 forks source link

auto-sharding: distributed writes #1087

Open githubmanticore opened 1 year ago

githubmanticore commented 1 year ago

At present, a distributed table can only manage select and update operations. The goal is to enable it to process insert, replace, and delete operations as well.

Here is a high-level specification of the desired functionality:

When writing to a distributed table with the following configuration: t type='distributed' local='t_2' local='t_1' agent='<node3>:t_3|<node1>:t_3':

Before implementing this task, a more comprehensive and detailed specification is necessary. Some questions to consider include:

It is essential to review and consider the discussions and decisions from https://gitlab.com/manticoresearch/dev/-/issues/1748 before proceeding. https://gitlab.com/manticoresearch/dev/-/issues/2935#note_1151535983 is also worth reading to understand the whole auto-sharding idea.

githubmanticore commented 1 year ago

➤ Sergey Nikolaev commented:

Ilya suggested the idea of implementing the whole auto-sharding functionality in Manticore Buddy with optional implementation of hot places in C++ and using them from PHP. It's to be discussed.

marclaporte commented 1 month ago

I can't access the links from above: https://gitlab.com/manticoresearch/dev/-/issues/1748 https://gitlab.com/manticoresearch/dev/-/issues/2935#note_1151535983