What's New in Version 2024.11.10-4f524894
New Features and Enhancements
Section titled “New Features and Enhancements”You can now configure engines to automatically suspend after a period of inactivity:
-
The api.create_engine() procedure has a new
engine_config
parameter that accepts a JSON object, like{'auto_suspend_mins': 60, 'await_storage_vacuum': false}
, for configuring how many minutes an engine must be inactive before being suspended and whether or not garbage collection tasks must complete before suspending the engine. Ifengine_config
isNULL
, the engine is configured withauto_suspend_mins
set to0
, and the engine will not be automatically suspended. -
The default value for
auto_suspend_mins
will change from0
to60
minutes in a future release. To avoid unexpected behavior, we recommend creating engines with an explicitauto_suspend_mins
value. Beginning with version0.6.0
of the RAI Python API, engines auto-created by the API will be configured withauto_suspend_min
set to value of theauto_suspend_min
configuration key, or60
minutes if the key is missing. -
An api.alter_engine_auto_suspend_mins() procedure has been added to alter an existing engine’s
auto_suspend_mins
configuration parameter. Note that this procedure only works for engines created using the newapi.create_engine()
procedure mentioned above. -
Use the new api.resume_engine() procedure to resume a suspended engine. Beginning with version
0.6.0
of the RAI Python API, suspended engines will be resumed automatically when Python queries are executed. -
The
api.engines
view, as well as the table returned byapi.get_engine()
, now include anAUTO_SUSPEND_MINS
andAWAIT_STORAGE_VACUUM
columns that contain the configured values for each engine. The newSUSPENDS_AT
column shows the timestamp of the next scheduled suspension for inactive engines.
Bug Fixes
Section titled “Bug Fixes”- Fixed a bug that periodically resumed the app warehouse while the Native App was deactivated.