Roles
A user must be assigned theadmin application role to execute any of the examples described on this page.
Manage Compute Pool
Winning Variant creates its own compute pool that it uses to run its services in an isolated environment. Theadmin application role is granted the following permissions: OPERATE, MODIFY, USAGE, MONITOR . This means that an admin can alter the compute pool directly.
All services are designed to run on a single instance, so there’s no point in increasing the number of nodes in the compute pool as each service will still use just a single instance.
Manage Services
The Winning Variant services can be managed by an admin using the following stored procedures (all within themanagement schema):
Examples
Task Scheduling
Winning Variant maintains a few internal tasks whose schedules can be modified to fit your company’s needs. Each task’s schedule may be modifed with the following stored procedure:management.set_task_schedule(task_name VARCHAR, schedule VARCHAR)
Available tasks are:
Example
Configuration Properties
While certain components of the app are configurable directly via SQL (i.e., scaling a compute pool), other components may be configured indirectly.Properties
Set configuration property
To set a property, execute the following procedure:All values are stored as strings. So even a number, such as
100 should be stored as '100'.Get configuration properties
To see the current configuration properties, perform aSELECT from management.config_properties.
Example