'\" -*- coding: UTF-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH appmgr 8 "August 27, 2009" "" "" .SH NAME appmgr \- Tool to manage applications and platforms .SH SYNOPSIS 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu list [\fB--no-versions\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu add \fINAME\fR \fIDESC\fR [\fB--hr=no\fR | \fB--hr=fine\fR | \fB--hr=coarse\fR] [\fB--beta\fR] [\fB--weight=\fINUM\fB\fR] [\fB--target_nresults=\fINUM\fB\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu delete \fINAME\fR [\fB--version=\fIVER\fB\fR] [\fB--platform=\fINAME\fB\fR] [\fB--plan_class=\fINAME\fB\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu update \fINAME\fR [\fB--hr=no\fR | \fB--hr=fine\fR | \fB--hr=coarse\fR] [\fB--beta\fR | \fB--no-beta\fR] [\fB--weight=\fINUM\fB\fR] [\fB--target_nresults=\fINUM\fB\fR] [\fB--user_friendly_name=\fIDESC\fB\fR] [\fB--min_version=\fIVER\fB\fR] [\fB--deprecated\fR | \fB--no-deprecated\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu update_appver \fINAME\fR [\fB--version=\fIVER\fB\fR] [\fB--platform=\fINAME\fB\fR] [\fB--plan_class=\fINAME\fB\fR] [\fB--deprecated\fR | \fB--no-deprecated\fR] [\fB--min_core_version=\fIVER\fB\fR] [\fB--max_core_version=\fIVER\fB\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu list_platform [\fB--short\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu add_platform \fINAME\fR \fIDESC\fR 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu delete_platform \fINAME\fR [\fB--force\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu update_platform \fINAME\fR [\fB--user_friendly_name=\fIDESC\fB\fR] [\fB--deprecated\fR | \fB--no-deprecated\fR] 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu add_standard_platforms 'in \n(.iu-\nxu .ad b 'hy 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu {\fB-h\fR | \fB--help\fR} 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBappmgr\fR is a tool to manage platforms, applications and application versions from the command-line. .PP Note: \fIapplication\fR refers to data in the \*(T table; \fIapplication version\fR refers to data in the \*(T table and in the file system. .SH COMMANDS The generic syntax is: .PP 'nh .fi .ad l \fBappmgr\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu COMMAND [\fIcommand arguments\fR] 'in \n(.iu-\nxu .ad b 'hy .PP Note that command-specific options must came after the command, never before. Here is a short list of the available commands. The following sections describe the commands in detail. .TP list List the installed applications and application versions. .TP add Add a new application. .TP delete Delete an application or application version. .TP update Update the properties of an application. .TP update_appver Update the properties of an application version. .TP list_platform List the platforms known to the project. .TP add_platform Add a new platform. .TP delete_platform Delete a platform. .TP update_platform Update the properties of a platform. .TP add_standard_platforms Add all standard platforms to the project. .SS LIST List the installed applications and application versions, together with any non-default properties (beta, deprecated, min. core version etc.). If the \*(T<\fB\-\-no\-versions\fR\*(T> option is specified, then the list of application versions is omitted and just the application definitions are listed. .SS ADD Add a new application. \fINAME\fR is the short name of the application as used in the file system. \fIDESC\fR is the user-friendly name that is displayed to users. .PP The following options can also be specified: .TP \*(T<\fB\-\-hr=no\fR\*(T>, \*(T<\fB\-\-hr=fine\fR\*(T>, \*(T<\fB\-\-hr=coarse\fR\*(T> Set the homogeneous redundancy class. \*(T means all hosts are equivalent, \*(T means fine-grained classification of 80 classes, \*(T means coarse classification of 4 classes. .TP \*(T<\fB\-\-beta\fR\*(T> Indicate that this is application is in beta testing. Users can select if they are willing to test applications marked as beta in their preferences; see the wiki section "Beta-test applications" about how to enable this on the web interface. .TP \*(T<\fB\-\-weight=\fR\*(T>\fINUM\fR Specify the weight of this application if the feeder is run with the \*(T<\fB\-allapps\fR\*(T> option. \fINUM\fR is a floating-point value, the default is 1. .TP \*(T<\fB\-\-target_nresults=\fR\*(T>\fINUM\fR Set the number of replicas when an otherwise unreplicated work unit is sent to a host that is not trusted. See the wiki section "Adaptive replication" for details. .SS DELETE Delete applications or application versions. This command deletes both the database records and the files under the \*(T<\fIdownload\fR\*(T> and \*(T<\fIapps\fR\*(T> directories, so use with care. .PP The following options can be specified: .TP \*(T<\fB\-\-version=\fR\*(T>\fIVER\fR Select only application versions with the version number \fIVER\fR. The version number must be specified as \*(T. .TP \*(T<\fB\-\-platform=\fR\*(T>\fINAME\fR Select only application versions for the platform \fINAME\fR. .TP \*(T<\fB\-\-plan_class=\fR\*(T>\fINAME\fR Select only application versions having the plan class \fINAME\fR. .PP If more than one of the options \*(T<\fB\-\-version\fR\*(T>, \*(T<\fB\-\-platform\fR\*(T> and \*(T<\fB\-\-plan_class\fR\*(T> are specified, then only application versions matching all the criteria are deleted. If none of these options are specified, then the application is also deleted. Note that if one or more of these options are specified then the application is not deleted even if there are no more application versions remaining. .SS UPDATE Update the properties of an application. The following properties can be modified: .TP \*(T<\fB\-\-hr=no\fR\*(T>, \*(T<\fB\-\-hr=fine\fR\*(T>, \*(T<\fB\-\-hr=coarse\fR\*(T> Set the homogeneous redundancy class. \*(T means all hosts are equivalent, \*(T means fine-grained classification of 80 classes, \*(T means coarse classification of 4 classes. .RS \fBWarning\fR Do not change the homogeneous redundancy class while there are jobs in progress! .RE .TP \*(T<\fB\-\-beta\fR\*(T> Indicate that this is application is in beta testing. Users can select if they are willing to test applications marked as beta in their preferences; see the wiki about how to enable this on the web interface. .TP \*(T<\fB\-\-no\-beta\fR\*(T> Indicate that the application is no more in beta testing. .TP \*(T<\fB\-\-weight=\fR\*(T>\fINUM\fR Specify the weight of this application if the feeder is run with the \*(T<\fB\-allapps\fR\*(T> option. \fINUM\fR is a floating-point value, the default is 1. .TP \*(T<\fB\-\-target_nresults=\fR\*(T>\fINUM\fR Set the number of replicas when an otherwise unreplicated work unit is sent to a host that is not trusted. See the wiki article on "Adaptive replication" for details. .TP \*(T<\fB\-\-user_friendly_name=\fR\*(T>\fIDESC\fR Update the user-friendly description of the application. .TP \*(T<\fB\-\-min_version=\fR\*(T>\fIVER\fR Set the min. version of the application that the scheduler accepts. This is checked only if the client uses the \*(T platform. The version number must be specified as \*(T. .TP \*(T<\fB\-\-deprecated\fR\*(T> Indicate that the application is deprecated. The feeder will then ignore this application when looking for new work. .TP \*(T<\fB\-\-no\-deprecated\fR\*(T> Remove the deprecation mark from the application. .SS UPDATE_APPVER Update the properties of an application version. The version(s) to operate on can be specified with the \*(T<\fB\-\-version\fR\*(T>, \*(T<\fB\-\-platform\fR\*(T> and \*(T<\fB\-\-plan_class\fR\*(T> options, as described at the \*(T command. .PP The following properties can be modified: .TP \*(T<\fB\-\-min_core_version=\fR\*(T>\fIVER\fR Set the min. version of the core client that is required to run this application version. The version number must be specified as \*(T. The 3rd component (the patch level) of the core client version is ignored. .TP \*(T<\fB\-\-max_core_version=\fR\*(T>\fIVER\fR Set the max. version of the core client that is allowed to run this application. Note that the scheduler ignores this setting currently. .TP \*(T<\fB\-\-deprecated\fR\*(T> Indicate that the application version is deprecated. The feeder will then ignore this version when looking for new work. .TP \*(T<\fB\-\-no\-deprecated\fR\*(T> Remove the deprecation mark from the application version. .SS LIST_PLATFORM List the platforms known to the project. If the \*(T<\fB\-\-short\fR\*(T> option is specified, then only the short names of the platforms are listed. .SS ADD_PLATFORM Add a new platform. \fINAME\fR is the short name of the platform that is used in the scheduler requests. \fIDESC\fR is the user-friendly name that is displayed to users. .SS DELETE_PLATFORM Delete a platform. If the \*(T<\fB\-\-force\fR\*(T> option is specified, the command deletes all application versions for this platform. Otherwise, if there are such application versions, the command will fail. .SS UPDATE_PLATFORM Update the properties of a platform. The following properties can be modified: .TP \*(T<\fB\-\-user_friendly_name=\fR\*(T>\fIDESC\fR Update the user-friendly description of the platform. .TP \*(T<\fB\-\-deprecated\fR\*(T> Indicate that the platform is deprecated. The feeder will then ignore this platform when looking for new work. .TP \*(T<\fB\-\-no\-deprecated\fR\*(T> Remove the deprecation mark from the platform. .SS ADD_STANDARD_PLATFORMS Add all the standard platform definitions to the database that do not exist yet.