Deploy C3 AI Studio
C3 AI Studio is automatically created for hosted clusters. This topic provides the steps for creating C3 AI Studio on a SNE (single node environment) for on-premise and air-gapped clusters.
Multiple studios are not supported in a cluster. Deploying Studio in an SNE does not impact your previously created environments.
Deploy instructions
You need cluster admin access to deploy a Studio.
In Chrome, navigate to
<<<cluster_url>>>/c3/c3.Open Chrome DevTools. For Windows, use Ctrl + Shift + J. For Mac, use Cmd + Option + J.
Create an
aienvironment. You need this to deploy Studio.JavaScriptCluster.startEnv({ "name": "ai", "singleNode": true, "defaultAppMode": "prod", "sharedDb": true});Studio should be running at all times. Avoid hibernating the environment by adding it to the hibernate exclusion list.
JavaScriptStudioCluster.Hibernation.addEnvToExclusionList( <env-id>, -1 )Navigate to new environment
<<<cluster_url>>>/c3/ai.Try deploying Studio.
Note: If the deployment does not succeed, you may need to wait a few minutes and repeat the command.
JavaScriptPkg.Store.inst().config().clearConfigAndSecretOverride('APP') Studio.deploy('prod')Update Studio MicroService Configs to set it at CLUSTER level.
JavaScriptMicroservice.Config.listConfigs().collect().filter(c => c.configOverride == "ENV").each(c => { Microservice.Config.forName(c.name).setConfig("CLUSTER"); Microservice.Config.forName(c.name).clearConfigAndSecretOverride("ENV"); });