Posts

AWS Architect Certification Notes

Amazon AWS useful CLI commands ec2daa - ec2 describe account attributes ec2daa max-elastic-ips, vpc-max-elastic-ips, max-instances, supported-platforms Selecting the Best VPC Network Architecture (http://www.youtube.com/watch?v=m6Q5dWjFdiU) Amazon EC2 to Amazon VPC: A case study (http://www.youtube.com/watch?v=jxvVYRFJCuc) Elasticity, Scalability and Bootstrapping Anti-Pattern:  Manual Process      Pattern     :  Automated Process   Anti-Pattern: Tightly-coupled   Pattern     : Loosely-coupled (using Load Balancer) Anti-Pattern: Stateful  (Challenging to scale horizontally) Pattern     : Stateless (Move state to a shared, accessible location) Anti-Pattern:  Vertical (more cpu,memory)      Pattern     :  Horizontal Bootstrapping - The process of automatically setting up your servers eg: opening ports, installing software, copying d...

GDS summary information

http://www.slideshare.net/AngelinaNjegus/lesson-3-from-computer-reservation-systems-to-global-distribution-systems http://locanda.sourceforge.net/features/ Global Distribution System - Automated transactions between Third-parties and booking agents in order to provision travel related services to the end customer.Links different services (rates, bookings, consolidates services across all three travel sectors - airline reservation, hotel reservations, car rentals and activities) A computer reservations system or central reservation system[1] ( CRS ) is a computerized system used to store and retrieve information and conduct transactions related to air travel, hotels, car rental, or activities An Internet booking engine ( IBE ) is an application which helps the travel and tourism industry support reservation through the Internet. It helps consumers to book flights, hotels, holiday packages, insurance and other services online. This is a much needed application for the aviation i...

AWS fixing a volume login

lsblk mount /dev/xvdf /mnt cd /mnt/var/log ls -ltr tail -n 20 auth.log cd /mnt/home/bitnami ls -ld cd chroot /mnt cd /home/bitnami ls -ld ls -ld .ssh ls -la .ssh ls -ld /home chown bitnami:bitnami /home/bitnami ls -ld . exit umount /mnt /dev/sda1 find out top 10 largest file/directories du -a /var | sort -n -r | head -n 10 du -hsx * | sort -rh | head -10

Deploying from Maven to AWS Beanstalk

Reference: http://beanstalker.ingenieux.com.br/beanstalk-maven-plugin/usage.html http://beanstalker.ingenieux.com.br/beanstalk-maven-plugin/configurations-and-templates.html Security Credentials Here, you have two options: Declare as a server on your $HOME/.m2/settings.xml: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0                       http://maven.apache.org/xsd/settings-1.0.0.xsd">   <servers>     <server>     <id>aws.amazon.com</id>       <username>[your aws access key]</username>       <password>[your...

AWS Oracle RDS - increasing tablespace maxsize

Oracle RDS Maintenance  Check table space and file sizes select tablespace_name, file_name ,AUTOEXTENSIBLE,MAXBYTES,INCREMENT_BY from dba_data_files order by 1,2; Check available space and space used select b.tablespace_name, tbs_size SizeMb, a.free_space FreeMb from  (select tablespace_name, round(sum(bytes)/1024/1024 ,2) as free_space        from dba_free_space        group by tablespace_name) a,       (select tablespace_name, sum(bytes)/1024/1024 as tbs_size        from dba_data_files        group by tablespace_name) b where a.tablespace_name(+)=b.tablespace_name; Set autoextend table space  The Oracle RDS in AWS uses a different command as follows, Bigfile Type Tablespaces versus Smallfile Type http://www.databasejournal.com/features/oracle/article.php/3646226/Bigfile-Type-Tablespaces-versus-Smallfile-Type.htm -- checking the sizes of your datafiles...

DB Connection Pooling

If you are using DriverManagerDataSource then note: That this class is not an actual connection pool; it does not actually pool Connections. It just serves as simple replacement for a full-blown connection pool, implementing the same standard interface, but creating new Connections on every call. So change the class to:  com.mchange.v2.c3p0.ComboPooledDataSource c3p0 is an easy-to-use library for making traditional JDBC drivers "enterprise-ready" by augmenting them with functionality defined by the jdbc3 spec and the optional extensions to jdbc2. http://www.mchange.com/projects/c3p0/#quickstart You need to include the dependency in your pom.xml as follows,                                <dependency>                               ...

AWS Beanstalk custom configuration

AWS Beanstalk custom configuration for httpd re-route include in your war file a folder named '.ebextensions' in the folder include a file with extension ".config"  eg: myapp.config myapp.config will contain container_commands:     01_setup_rewrite:         command: "cp .ebextensions/httpd-proxy.conf /etc/httpd/conf.d/httpd-proxy.conf"     02_apache_restart:         command: /etc/init.d/httpd restart This in essence copies the file included in the .ebextnsions folder (httpd-proxy.conf) to the /etc/httpd/conf.d folder. And restarts httpd if you look at httpd.conf file it contains an "Include /conf.d/* so anything put on conf.d folder will be included in httpd.conf so essentially you don't need to modify httpd.conf file. What I do here is redirect all request that comes to the server with  /rrrrrr to S3 bucket I configure with the same name as the server. KeepAlive On MaxKeepAliveRequests 100 Keep...