The apps.actions.control.admin module contains the Django administration pages for the control app
The ClusterAdmin class represents the Cluster model administration page
The Ec2ProfileAdmin class represents the Ec2Profile model administration page
alias of Ec2Profile
The JvmProfileAdmin class represents the JvmProfile model administration page
The NodeAdmin class represents the Node model administration page
alias of Node
The NodeInline class represents a Node model inline form to be embedded into the ClusterAdmin administration page
alias of Node
The SshProfileAdmin class represents the SshProfile model administration page
alias of SshProfile
The TriggerActionInline class represents a TriggerAction model inline form to be embedded into the TriggerAdmin administration page
alias of TriggerAction
The TriggerAdmin class represents the Trigger model administration page
The apps.control.models module contains the Django models for the control app.
Bases: django.db.models.base.Model
Cluster(id, name)
Cluster name
Bases: django.db.models.base.Model
The Ec2Profile class represents the EC2 configuration associated with a Node
Available EC2 instance types.
Avaliable regions for Ec2 instances
Ec2 instance AMI
Ec2 instance type
Ec2 instance ssh key pair
Associated Elastic Load Balancer instance
Ec2Profile name
Ec2 instance region
Ec2 firewall security group
Ec2 instance custom user_data field
Bases: django.db.models.base.Model
The JVMProfile model represents the configuration needed to connect to a remote JVM via JMX.
JvmProfile name.
JMX password.
JMX port.
JMX user.
Bases: django.db.models.base.Model
Node(id, name, hostname, cluster_id, ec2profile_id, sshprofile_id)
Associated Cluster
Associated Ec2Profile
Node dns name or ip address
Associated JvmProfiles.
Node name
Associated SshProfile
Bases: django.db.models.base.Model
The SshProfile model represents the configuration needed to connect to Node via SSH.
Private key file path used for key authentication.
SshProfile name.
User name to connect via SSH.
Bases: django.db.models.base.Model
Trigger(id, name, timing, cluster_id, enabled)
Associated Cluster
Associated Counters.
Trigger enabled or not.
Trigger name.
Number of minutes that must elapse when any of the associated thresholds are reached until the associated Actions are executed.
The apps.control.tasks module contains the Celery tasks for the control app.
The getTriggerCounters task executes all the performance counter monitors defined in the Triggers.
The apps.control.urls module contains the Django urls definition for the control app.
Launches the nodelist views function.
Launches the triggerlist views function.
Launches the ec2profileDetail views function.
Launches the distributedscripts views function.
Launches the* localscripts* views function.
Launches the triggers views function.
Launches the triggerActionList views function.
Launches the triggerExecute views function.
Launches the triggerOutput views function.
Launches the osprovisioning views function.
The distributedscripts function is used display the DistributedScript execution page on the frontend web page. It uses the execute.html template.
The ec2nodes function is used display the Ec2 Nodes management page on the frontend web page. It uses the ec2nodes.html template.
The ec2profileDetail function returns a dictionary of an Ec2Profile model fields and values in JSON format.
The localscripts function is used display the LocalScript execution page on the frontend web page. It uses the execute.html template.
The nodelist function returns the Node list for a specific Cluster in JSON format
The osprovisioning function is used display the OSConfiguration deployment page on the frontend web page. It uses the execute.html template.
The triggerlist function returns the Actions list for a specific Trigger in JSON format
The triggerExecute view executes a Trigger associated with a Cluster.
It executes each associated Action in the order specified in the TriggerAction intermediate model Order field.
It uses as destination of each Action the targer specified in the Target field.
It can be:
The triggerOutput function returns the status and output for the Celery task used to execute a Trigger in JSON format
The triggerlist function returns the Trigger list for a specific Cluster in JSON format
This view function displays can be used to execute associated ActionOrder from a Trigger | The triggers function is used display the Trigger execution page on the frontend web page. It can be used to execute all the Actions associated with a Trigger. | The Trigger is related to each Action via an ActionOrder that specifies the execution order and the Action target. | It uses the triggers.html template.