6.46.8 • Published 4 days ago

@gasket/plugin-happyfeet v6.46.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

@gasket/plugin-happyfeet

Integrates with happy-feet to add application instance termination when health metrics such as memory usage enter a bad state.

Installation

New apps

gasket create <app-name> --plugins @gasket/plugin-happyfeet

Existing apps

npm i @gasket/plugin-happyfeet

Modify the plugins section of your gasket.config.js:

module.exports = {
  plugins: {
    add: [
+      '@gasket/plugin-happyfeet'
    ]
  }
}

Configuration

You can specify the various happy-feet config options in gasket.config.js.

// gasket.config.js
module.exports = {
   happyFeet: {
    // https://github.com/asilvas/happy-feet#usage
    escalationSoftLimitMin: 20, // 20s
    escalationSoftLimitMax: 300, // 5min
    uncaughtExceptionSoftLimit: 1,
    uncaughtExceptionHardLimit: void 0,
    rssSoftLimit: 0.9 * 1024 * 1024 * 1024, // ~900MB
    rssHardLimit: 1.8 * 1024 * 1024 * 1024, // ~1.9GB
    logOnUnhappy: true
  }
};

Happy Feet for gasket has no default configuration.

Usage

You can call gasket.happyFeet directly to manually change the health status for any reason by setting gasket.happyFeet.status = 'unhappy' in any context that you have the gasket object available to your function.

For example, you can define middleware to run before any healthchecks to define custom termination logic for things not included in the default metrics monitoring.

License

MIT

7.0.0-next.21

4 days ago

7.0.0-next.20

9 days ago

7.0.0-next.9

9 days ago

7.0.0-next.10

9 days ago

7.0.0-next.7

9 days ago

7.0.0-next.11

9 days ago

7.0.0-next.8

9 days ago

7.0.0-next.12

9 days ago

7.0.0-next.13

9 days ago

7.0.0-next.6

9 days ago

7.0.0-next.5

10 days ago

6.46.8

11 days ago

7.0.0-next.4

12 days ago

7.0.0-next.3

16 days ago

7.0.0-next.2

23 days ago

7.0.0-next.1

24 days ago

7.0.0-next.0

24 days ago

6.46.7

1 month ago

7.0.0-cli.7

2 months ago

7.0.0-cli.6

2 months ago

6.46.1-cli.0

2 months ago

7.0.0-cli.5

2 months ago

7.0.0-cli.4

2 months ago

7.0.0-cli.1

2 months ago

7.0.0-cli.0

2 months ago

7.0.0-cli.3

2 months ago

7.0.0-cli.2

2 months ago

7.0.0-canary.1

2 months ago

6.45.0

4 months ago

6.44.0

5 months ago

6.39.1

12 months ago

6.39.0

12 months ago