Stopping and starting a recommender
After your recommender is active, you can stop a recommender and start it later. This way, you can pause recommender billing and only pay for it when you use it. For example, you might need to get recommendations only on certain days of the week. You can stop the recommender on the days you don't need it, and then start the recommender on the days you do.
After you stop a recommender, you can't use it to get recommendations. Stopping a recommender halts recommender billing and retraining. However, stopping a recommender doesn't delete the recommender. You can restart it at any time and resume getting recommendations. Starting a recommender doesn't create a new recommender with your data. Rather, it resumes recommender billing and retraining every 7 days.
You can stop and start a recommender with the Amazon Personalize console, Amazon Command Line Interface (Amazon CLI), Amazon SDKs, or the StartRecommender and StopRecommender API operations.
Recommender states
When you stop a recommender, the recommender state changes from ACTIVE to INACTIVE in the following sequence:
ACTIVE > STOP PENDING > STOP IN PROGRESS > INACTIVE
When you start a recommender, the recommender state changes from INACTIVE to ACTIVE in the following sequence:
INACTIVE > START PENDING > START IN PROGRESS > ACTIVE
Topics
Stopping and starting a recommender (console)
You can use the Amazon Personalize to stop and restart a recommender.
Stopping a recommender (console)
You can use the Amazon Personalize console to stop an active recommender as follows.
To stop a recommender
-
Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home
and sign in to your account. -
On the Dataset groups page, choose your Domain dataset group.
-
From the navigation pane, choose Recommenders.
-
On the Recommenders page, choose the recommender that you want to stop.
-
Choose Stop recommender at the top right and confirm on the window that displays.
When the recommender status is inactive, your recommender has stopped. This halts any recommender billing and retraining. You can't use the recommender until you start it.
Starting a recommender (console)
You can use the Amazon Personalize console to start an inactive recommender as follows.
To start a recommender
-
Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home
and sign in to your account. -
On the Dataset groups page, choose your Domain dataset group.
-
From the navigation pane, choose Recommenders.
-
On the Recommenders page, choose the recommender that you want to start.
-
Choose Start recommender at the top right and confirm that you want to start it on the window that displays.
When the recommender status is active, you can resume getting recommendations from it. Recommender billing and automatic retraining also resumes.
Stopping and restarting a recommender (Amazon CLI)
To stop an active recommender with the Amazon CLI, use the stop-recommender
command and provide the
Amazon Resource Name (ARN) for the recommender as follows:
aws personalize stop-recommender --recommender-arn "
recommender arn
"
To start an inactive recommender with the Amazon CLI, use the start-recommender
command and provide the
ARN for the stopped recommender as follows:
aws personalize start-recommender --recommender-arn "
recommender arn
"
For more information about the API operations, see StartRecommender and StopRecommender.
Stopping and restarting a recommender (Amazon SDKs)
You can use the Amazon SDKs to start an active recommender or stop an inactive recommender. For more information about the API operations, see StartRecommender and StopRecommender.
Stopping a recommender (Amazon SDKs)
The following code shows how to stop an active recommender with the Amazon SDKs. Stopping halts any recommender billing and automatic retraining. You can't use the recommender until you restart it.
Starting a recommender (Amazon SDKs)
The following code shows how to start an inactive recommender with the Amazon SDKs. When the recommender status is active, you can resume getting recommendations from it. At the same time, recommender billing and automatic retraining also resumes.