Seeing "sqlite3.OperationalError: database is locked" Error #8708
-
Hello, Running c7n (0.9.27) for AWS in default poll mode.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks, good question. This error seems expected if you try to share a cache across processes, as you suspected 👍 .
Depends a bit on where you're running. c7n-org is the most common tool for fanning out custodian executions, and it defaults to cpu count * 4. Which seems as reasonable a starting point as any.
Yes. You can use the
Sure that's an option too, though that may cause you to hit provider APIs harder than necessary. |
Beta Was this translation helpful? Give feedback.
Thanks, good question. This error seems expected if you try to share a cache across processes, as you suspected 👍 .
Depends a bit on where you're running. c7n-org is the most common tool for fanning out custodian executions, and it defaults to cpu count * 4. Which seems as reasonable a starting point as any.
Yes. You can use the
-f
/--cache
argument to thecustodian run
command. Again using c7n-org as a reference, it fans out into separate workers for account/region pairs. And it uses~/.cache/c7n-org/<account>-<region>.cache
…