Skip to content

How To Clear Queued Renewal Work? #297

@surgiie

Description

@surgiie

Problem Description:

We are encountering issues with queued renewal work in the lua-resty-auto-ssl plugin. Specifically, we are using the Redis storage driver with the following configuration:

auto_ssl:set("storage_adapter", "resty.auto-ssl.storage_adapters.redis")
auto_ssl:set("redis", { host = "..."})

Our setup has resulted in a significant number of renewals getting queued for processing that are no longer necessary. As a consequence, our web server's CPU usage spikes, leading to severe disruptions in user traffic.

Current Workaround:

As a temporary solution, we have disabled the plugin using the following Lua block:

ssl_certificate_by_lua_block {
    auto_ssl:ssl_certificate({ generate_certs = false })
}

While this workaround has mitigated the issue, we are seeking a more permanent solution to clear out the unnecessary queued renewal work which starts to process back up once the plugin is re-enabled.

Desired Solution:

We are unsure of where this plugin is storing data for the renewals but we suspect that clearing specific key(s) from the Redis storage would resolve this problem. However, we are uncertain about which key(s) are pertinent to this issue and how to clear them effectively.

Requested Assistance:

Could someone knowledgeable about lua-resty-auto-ssl and Redis storage provide guidance on the following:

Which specific key(s) in Redis correspond to the queued/renewal work that needs to be cleared?
What is the recommended method or script to clear out this unnecessary work from Redis?
Any insights or assistance would be greatly appreciated as we aim to optimize our system's performance and minimize disruptions to user traffic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions