Skip to content

MailPit scale to zero #1578

Description

@fowl2

Related to an existing integration?

Yes

Existing integration

MailPit

Overview

Currently all my dev/test environments running on Azure Container Apps with scale to zero. Since adding MailPit, it has dominated my costs. It would be great MailPit would scale to zero too.

Usage example

Option A

// No API, it's by default <3

Option B

.AddMailPit()
.WithDataVolume()
.WithScaleToZero()

// needs some more thought

Breaking change?

I'm not sure

Alternatives

  1. Do nothing: just pay the cost.
  2. Set up scale rules in apphost logic.

Additional context

As far as I can tell this should be possible with TCP Scale Rules. I thought this was a KEDA thing but maybe it's Azure Container Apps specific :(.

Another wrinkle might be that persistent storage is not enabled by default, without which every scale operation loses all the emails.

Help us help you

Yes, but only if others can assist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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