ekuiper icon indicating copy to clipboard operation
ekuiper copied to clipboard

Batch API invocation for Kuiper instances.

Open ngjaying opened this issue 4 years ago • 3 comments

ngjaying avatar Dec 17 '21 09:12 ngjaying

Any updates, by when can the feature for bulk provisioning will be made available in eKuiper? Currently, we are provisioning single entity for CONF_KEY, STREAM and RULES using the REST APIs available under eKuiper, which is actually a tedious task for configuring around 100 CONF_KEY, STREAM and RULES (in total making upto 300 REST API calls). To enhance the performance, we actually need the REST APIs that can provisioning the following entities in bulk, resulting in just 3 REST API calls.

saransh14 avatar Apr 22 '22 07:04 saransh14

This is not prioritized because it is easy to have a script or small program to bulk creating multiple rules. Are there any problems that a script cannot meet your requirements?

ngjaying avatar Apr 22 '22 09:04 ngjaying

I agree we can anyway develop a small code using which we can perform the bulk provisioning, but just for better performance and optimized approach we wanted the support for bulk provisioning using a single API interface,

saransh14 avatar Apr 26 '22 07:04 saransh14

We provide an API to import/export the ruleset, check https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/operation/restapi/ruleset.md. Hope this is what you need.

ngjaying avatar Oct 27 '22 11:10 ngjaying