Skip to Content
SAP SQL Anywhere

SQL Anywhere, on-demand edition Tagging and Tasks

Tags:

Module 6 - Tagging and Tasks

Now that you have created your SAP Sybase SQL Anywhere, on-demand edition cloud and added hosts, servers and databases, you need to manage those objects within the cloud environment. One way to manage cloud objects is by using tags. A tag is a non-hierarchical term or keyword that is assigned to a number of cloud objects. Tags provide an intuitive and flexible way to group cloud objects together using attributes that are common among them. These tags can then be used as targets for cloud administration activities and task deployment. For example, users can assign a geographical tag in order to schedule a task that applies only to tenant databases in a specific region, or to ensure that an object only interacts with other objects that use the same tag.

Pre-requisites

You should now be familiar with creating an SAP Sybase SQL Anywhere, on-demand edition Cloud, and adding hosts, servers and databases to that cloud. It is expected that you have created a cloud with a minimum of two cloud servers on multiple hosts, and have loaded some databases into the cloud.

For more information, please see the earlier tutorial modules.

Tag Management

To create a tag and apply it to an object:

  1. Click Tags in the left hand navigation pane from the Cloud Overview page. Then click Create.
  2. Select a Name and Description for the Tag and click OK.
  3. To apply the tag, check the desired Tag and click Apply or remove tag.
  4. Select Hosts, Servers, or Databases to tag and add them to the Tagged Objects column. Click OK.

Once you have assigned tags to some of the objects in your cloud, you can click Tags in the left-hand pane with a list of user-defined tags you have created. Clicking a specific tag will take you to the Overview tab of the relevant tag that shows a list of objects that have that tag applied to them. In the example below we see a list of all objects that have been tagged with the user-created tag “Canada”.

Tasks

All administrative functions relating to databases and cloud servers that are part of the cloud are performed by tasks. Tasks target objects that can be identified through a search. A search can identify a single database or cloud server, or a group of databases or cloud servers using specific names, tags (as discussed in the previous section), or any other system information associated with the cloud. Tasks can be executed immediately, on a recurring schedule, on a specific day at a specific time, or executed in response to a cloud event (e.g. a server failure).

Tasks can be executed from dialogs in the on-demand edition Console, such as adding and removing servers and databases, and managing backups and high availability for databases in your cloud. Other tasks, including maintenance of cloud objects, can be run from the Tasks tab in the on-demand edition Console. Examples of these tasks include adding copy nodes, altering maintenance plans, performing failovers, generating logs, and setting arbiters. To see a full list of available tasks and their descriptions, see http://dcx.sybase.com/index.html#cloud100/en/dbcloud/cloud-task-descriptions.html.

To run a task:

  1. Click Events in the left hand navigation pane from the Cloud Overview page. Then click Run new task under the Active Events box.
  2. Select a task to run and click Next.                   
  3. Enter the parameters for the task as required and click Finish to run the task. The task should appear in the list on the Tasks tab where you can see its status and result.

To schedule a task:

  1. Click Events in the left hand navigation pane from the Cloud Overview page. Then click Scedule task under the Scheduled Tasks box.
  2. Select a task to run and click Next.
  3. Enter the parameters for the task as required and hit Next.
  4. Decide when the task should run. The tasks can be triggered by an event, for example, adding a copy node when a Database Added event occurs; or at a specific time and date. Click Finish when you are done configuring the schedule.


No comments