Maintain and Monitor Functions

Prev Next

You can see relevant information about your function, as well as update and monitor functions from the Function details page. To access this page, select your function from the Narmi Functions list. The following actions are available:

  • Deactivate function – Deactivates and immediately applies a rate limit of zero to the function. All requests to the function URL will result in a 429 HTTP status code.

  • Activate function – Restores the function to an active state, so it can be invoked again via its invocation URL.

  • Update function configuration– Allows you to edit the name, description, and environment variables for the function. Also allows you to upload a new code archive to the function. If a new package is selected, the function will be replaced by the new package, and the previous version may not be recoverable.

  • Download function code– Downloads the currently live version of the function package.

  • Submit a test event – Allows you to invoke the function with a test JSON input; this will display the resulting function output and up to 4KB of logs produced by the function.

  • Override function concurrency – Allows you to override the number of individual requests that can be simultaneously running the Narmi function. The default function concurrency is 1. Functions in UAT environments are limited to 1 concurrent execution. Functions in production environments are limited to 25. Any requests beyond this will result in a 429 HTTP response.

You can also manually update the function using the code editor in the Code tab. This allows live updates to only the handler file. Updates to other files or dependencies must be made locally and can be uploaded via the Update function configuration action.

The Monitor tab displays your functions' metrics over the desired time window, aggregating the number of executions, errors, and average runtime. You can also download all function logs from a recent time range.

Runtime Deprecation Policy

Narmi Functions currently only supports a Node.js 18 runtime. Node.js 18 is expected to be supported until at least April 2025. A newer runtime will be available before an older runtime is deprecated. Deprecation (end of support) for a runtime occurs in three phases.

  • Phase 1 – AWS no longer applies security patches or other updates to the underlying deprecated runtime. You can no longer create Narmi Functions that use the deprecated runtime, but you can continue to update existing Narmi Functions.

  • Phase 2 – You can no longer create or update Narmi Functions that use the deprecated runtime. To update a function, you need to migrate it to a supported runtime. Phase 2 starts at least 30 days after the start of Phase 1.

  • Phase 3– Any remaining Narmi Functions using the deprecated runtime are disabled. Phase 3 starts at least 60 days after the start of Phase 2.