Giter Site home page Giter Site logo

detect-idle-sagemaker-endpoints's Introduction

detect-idle-sagemaker-endpoints

Automatically detecting idle Amazon SageMaker endpoints

  1. Create an SNS topic and subscribe your email or phone number to it.
  2. Create a Lambda function with the Lambda script.

Your Lambda function should have the following policies attached to its IAM execution role:

  • CloudWatchReadOnlyAccess
  • AmazonSNSFullAccess
  • AmazonSageMakerReadOnly

Investigating endpoints

This script sends an email (or text message, depending on how the SNS topic is configured) with the list of detected idle endpoints. You can then sign in to the Amazon SageMaker console and investigate those endpoints, and delete them if you find them to be unused stray endpoints. To do so, complete the following steps:

  1. On the Amazon SageMaker console, under Inference, choose Endpoints. You can see the list of all endpoints on your account in that Region.

  2. Select the endpoint that you want to investigate, and under Monitor, choose View invocation metrics.

  3. Under All metrics, select Invocations You can see the invocation activities on the endpoint. If you notice no invocation event (or activity) for the duration of your interest, it means the endpoint isn’t in use and you can delete it.

  4. When you’re confident you want to delete the endpoint, go back to the list of endpoints, select the endpoint you want to delete, and under the Actions menu, choose

detect-idle-sagemaker-endpoints's People

Contributors

marcschroeter avatar

Stargazers

Naresh Kumar avatar  avatar

Watchers

James Cloos avatar Felix Brilej avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.