jruizgit / rules

Durable Rules Engine
MIT License
1.14k stars 209 forks source link

Could not create ruleset: 106 #377

Open 25julia opened 3 years ago

25julia commented 3 years ago

Hi there, first of all thanks a lot for this amazing library, it works quite well on a small number of rules. However, when I and my colleagues were testing it for a big number of rules (let's say thousands of them) we ran into the problem of 'Could not create ruleset, error code: 106'. We are trying to tweak it with some other values for bucket_length, next_list_length, and beta_list_length because we have a scenario where we want the rules in the same ruleset, so something like:

define NEXT_BUCKET_LENGTH 16384

define NEXT_LIST_LENGTH 4096

define BETA_LIST_LENGTH 8192

We would really like to know if there is any particular reason why you were keeping these numbers at such a low threshold. Would really appreciate it if you could get back to us.

Error reference: self._handle = durable_rules_engine.create_ruleset(name, json.dumps(ruleset_definition, ensure_ascii=False)) durable_rules_engine.error: Could not create ruleset, error code: 106