Launching your aiCache instanceRegistering for aiCache AMI
Launching the aiCache instance
Selecting aiCache AMI
On next screen you will be asked for instance details (Number of instances, Instance Type, Availability Zone) As aicache is 64 bit only system the smallest instance type will be m1.large. Next step will ask for choosing Kernel ID, RAMDisk ID You can leave it default unless you have special reasons to change them On select Key Pair section choose one of you existing key pair or create & download new one Warning: Key pair is considered confidential , if anyone can access your key pair he is likelyto be able to control, terminate, restart or tamper with your Aicache and any Amazon EC2instance you launch using this key pair.On the next screen you will have to choose Security Group for aiCache instance. Minimal rule-set for this instance shall look like this Now your instance is ready to lunch. If no problem accrue you will see screen like this. Testing aicache instancePoint your browser to the amazon EC2 address - http://ec2-xx-xx-xx-xx.compute-1.amazonaws.comIf aicache started correctly and no problems with config file, http://www.google.com should appear Connecting to your aicache instanceNow you can connect to your aiCache instance and adjust config files as necessary via SSH.For windows ssh you can use Putty. For Linux and Mac use your favourite ssh clients. You will need to select your access key when you connect to server via SSH. Linux ssh command looks like this ssh -i path_to_aws_keypair root@ec2-xx-xx-xx-xx.compute-1.amazonaws.comWhere ec2-xx-xx is the public DNS name for your instance Location of aiCache. aiCache default location is /usr/local/aicache Default configuration file is /usr/local/aicache/aicache.cfg Log files are located at /var/log/aicache folder Restarting aiCache After you did some changes in config file, you have to restart or reload aiCache process. aiCache starts via /etc/inittab, so in order to restart aiCache just run " pkill aicache " command The corresponding line in /etc/inittab is YA:234:respawn:/usr/local/aicache/aicache -c aws -f /usr/local/aicache/aicache.cfg aiCache can startup manually or via custom startup script, but it is recommended not to change its current behavior if you are very sure about that. The syntax of /etc/inittab is RUN_ORDER(in alphabetic order):LINUX_RUNLEVEL:START_TYPE:COMMAND Our example is: YA: Last process that inittab starts after system boot 234: aiCache will start at runlevels 2, 3, 4. You can find more info about Linux runlevels here http://en.wikipedia.org/wiki/Runlevel respawn: Means that that Linux init will act as watchdog and start aiCache process it is stopped or crashed /usr/local/aicache/aicache -c aws -f /usr/local/aicache/aicache.cfg: BINARY -c LICENCE -f CONFIG_FILE. If for some reason you need to stop aiCache process and watchdog you have to 1. Edit /etc/inittab and comment "aiCache line" by putting # symbol at the beginning 2. Reload init by "telinit q" command To start aiCache again remove comment and reload init. Upgrading aiCache aiCache contains from single binary and config file. So upgrade procedure is quiet simple. Command below will do it /usr/local/aicache/update.sh && pkill aicache |







