r17 - 02 Jun 2008 - 09:05:35 - StephenQYou are here: Wiki >  AppLogic23 Web > RefAppsVPSCentOS51
ALERT! AppLogic 2.3 Beta Documentation The latest production release is AppLogic 2.4.7

VPS_CentOS50, VPS64_CentOS50, VPS_CentOS51, VPS64_OSOL, VPS_SOL10: Virtual Private Server Applications

Functional overview

VPS_CentOS50, VPS64_CentOS50, VPS_CentOS51, VPS64_OSOL, and VPS_SOL10 are dedicated virtual private server applications. They are designed to be deployed as standalone applications with no catalog parts.

VPS applications can scale from approximately one twentieth of a physical server to a full physical server depending on the resouce needs of the end user.

VPS applications include a basic build environment with GCC.

With CentOS based VPS's, any of the other CentOS packages can be installed by the end user, simply by running yum -y install <package> while running as root user.

With Solaris based VPS's, additional packages can be installed using pkgadd.

VPS applications are provided to allow hosting providers a quick and easy way to offer a dedicated server offering on the AppLogic Grid.

VPS applications configure themselves through properties on first boot. The initial user is created and the root password is placed in a file (/home/<user>/su.txt). VPS applications can be reset to their default properties by deleting /appliance/passwd.stamp from the appliance and restarting the application.

Application Latest Version OS Notes
VPS_CentOS50 1.3.2-1 CentOS 5  
VPS64_CentOS50 1.1.2-1 CentOS 5 (64 bit)  
VPS_CentOS51 1.1.2-1 CentOS 5.1  
VPS64_OSOL 1.0.1 OpenSolaris build 2008.05  
VPS_SOL10 1.0.1 Solaris 10 build GA This application is currently not distributed with AppLogic. Please contact Technical Support for more information.

Boundary

Resources

Linux based VPS's:

Resource Minimum Maximum Default
CPU 0.05 16 0.25
Memory 128 MB 16 GB 256 MB
Bandwidth 1 Mbps 1 Gbps 1 Mbps
Storage 1.4 GB 80 GB 1.4 GB

OpenSolaris VPS

Resource Minimum Maximum Default
CPU 0.2 16 0.5
Memory 384 MB 16 GB 512MB
Bandwidth 1 Mbps 1 Gbps 1 Mbps
Storage 3 GB 80 GB 4 GB

Solaris 10 VPS

Resource Minimum Maximum Default
CPU 0.5 16 0.5
Memory 384 MB 16 GB 512MB
Bandwidth 1 Mbps 1 Gbps 1 Mbps
Storage 4 GB 80 GB 4 GB

Terminals

Name Dir Protocol Description
none

The external interface is enabled. It is used for incoming and outgoing traffic. Its network settings are configured through properties.

The default interface is enabled. It is used for maintenance (incoming ssh connections from the controller).

User Volumes

None

Properties

Property name Type Description
hostname String Defines the hostname to assign. This property is mandatory.
user String Defines the user to be created on provioning of the application. This property is mandatory.
user_pw String Defines the password of the user account to be created. This property is mandatory.
root_pw String Defines the password of the root account. it will be set on first boot and written to /home/<user>/su.txt This property is mandatory.
primary_ip IP Address Defines the primary IP address of the external interface of the appliance. This property is mandatory.
secondary_ip IP Address Defines the secondary IP address of the external interface of the appliance.
netmask IP address Defines the network mask of the external interface. This property is mandatory.
gateway IP address Defines the default IP network gateway (router) for the external interface. The gateway address can be outside the network specified by netmask. To use a gateway that does not expose an IP and serves as proxy arp, set this property to 0.0.0.0. This property is mandatory.
dns1 IP address Defines the primary nameserver. This property is mandatory.
dns2 IP address Defines the secondary server.
dns3 IP address Defines the third server.

Typical Usage

The folowing shows the typical useage of the VPS_CentOS51 application

VPS.PNG

VPS_CentOS51 is to be used by hosting providers in order to offer dedicated servers using AppLogic without the need for any other 3rd party software or licenses.

VPS_CentOS51 is distirbuted only as an application containing a single instance of the appliance and does not reside in any catalogs.

Notes

By way of example, provisioning VPS_CentOS51 can be done by running a single command that can be automated from the providers portal.

app provision VPS_CentOS51 ExampleClient \
    user=Exampleuser user_pw=abcd1234 root_pw=acbde12345 \
    primary_ip=209.100.100.12 netmask=255.255.255.0 gateway=209.100.100.1 \
    hostname=mydomain.com dns1=209.101.1.2 dns2=209.101.1.3 \
    cpu.dflt=0.50 mem.dflt=1G VPS.boot.size=10G

The OpenSolaris and Solaris 10 VPS's have zpool_import installed as a legacy service. On stop, this service executes zpool export poolname on all ZFS pools which do not include a bootable dataset. On start, this service executes zpool import -a.

The zpool_import service leaves ZFS pools in an exported (portable) state when an appliance is stopped. This facilitates moving and copying pools from one application to another as well as modifying pools using the standard 3t shell vol commands, e.g., vol resize, vol copy, etc.

To manage ZFS pools manually, disable this service.

OpenSolaris? appliances use zpool version 10 and zfs version 2.

Solaris 10 appliances use zpool version 4 and zfs version 1. To use zfs pools with these appliances, create them from raw volumes rather than through the CLI vol create command. The CLI vol create operation creates the root zfs dataset using zfs version 2 which is not backwards compatible.

Limitations/Requirements

The /appliance directory MUST be left intact. Any changes to any files in this directory can cause the appliance to stop working.

Preventing vmad or vme from the /appliance directory from running on start will cause the appliance to stop working (on next restart).

Kernel updates and replacements should be based on AppLogic-provided kernel sources.

The /root/.ssh/authorized_keys file should not be modified; it will be overwritten by the build system at runtime.

Related documents

Questions and Comments

IDEA! To post questions and/or comments for this application, visit our forum.

-- NetClime - 21 Mar 2008

 
Copyright © 2005-2008 3tera, Inc. All Rights Reserved.
%