Open shift 2.x and MongoDB
-
Upload
plarsen67 -
Category
Technology
-
view
34 -
download
5
Transcript of Open shift 2.x and MongoDB
- 1. 1 by Red Hat OpenShift Enterprise Platform as a Service (PaaS) Peter Larsen Sr. Solutions Architect Red Hat, Inc. [email protected]
- 2. 2 by Red Hat/MongoDB Strategic Partnership OpenShift Broker datastore is backed by MongoDB OpenShift apps may contain MongoDB Cartridges Red Hat Subscription Manager is backed by MongoDB
- 3. 3 by CLOUD COMPUTING AND PAAS STORAGE (RHS) HARDWARE (x86) VIRTUALIZATION (RHEV) OPERATING SYSTEM (RHEL) APPLICATION PLATFORM (JBOSS, PHP, RUBY, ETC) APPLICATION Automated and Managed by the Public or Private Cloud Offering Managed and Controlled by Customer (IT, Dev, or User) IaaS PaaS SaaS Increased Control Increased Automation
- 4. 4 by With PaaS How to Build an App: 1. Have Idea 2. Get Budget 3. Code 4. Test 5. Launch 6. Automatically Scale How to Build an App: 1. Have Idea 2. Get Budget 3. Submit VM Request request 4. Wait 5. Deploy framework/appserver 6. Deploy testing tools 7. Code 8. Test 9. Configure Prod VMs 10. Push to Prod 11. Launch 12. Request More Prod VMs to meet demand 13. Wait 14. Deploy app to new VMs 15. Etc. Virtualized How to Build an App: 1. Have Idea 2. Get Budget 3. Submit hardware acquisition request 4. Wait 5. Get Hardware 6. Rack and Stack Hardware 7. Install Operating System 8. Install Operating System Patches/Fix-Packs 9. Create user Accounts 10. Deploy framework/appserver 11. Deploy testing tools 12. Code 13. Test 14. Configure Prod servers (and buy them if needed) 15. Push to Prod Launch 1. Order more servers to meet demand 2. Wait 3. Deploy new servers 4. Etc. Physical The use of Platform-as-a-Service technologies will enable IT organizations to become more agile and more responsive to the business needs. Gartner* PaaS CRAFTWORK MASS PRODUCTION
- 5. 5 by OpsDev OPENSHIFT VALUE Self Service Choice Fast Provisioning Resource Control High App/Server Ratio Security
- 6. 6 by OpenShift is PaaS by Red Hat Code Deploy Run
- 7. 7 by Red Hats OpenShift PaaS Strategy Public PaaS Service Q1 2011 Dev Preview Launched
- 8. 8 by Red Hats OpenShift PaaS Strategy origin Public Cloud Service Open Source Project Q1 2011 Dev Preview Launched Q1 2012
- 9. 9 by Red Hats OpenShift PaaS Strategy origin Public Cloud Service On-premise or Private Cloud Software Open Source Project Q1 2011 Dev Preview Launched Q1 2012 Q4 2012
- 10. 10 by Red Hats OpenShift PaaS Strategy origin Public Cloud Service On-premise or Private Cloud Software Open Source Project
- 11. 11 by
- 12. 12 by RHEL RHEL Broker Node Node Node RHEL AWS / CloudForms / OpenStack (IaaS) / RHEV (Virt) / Bare Metal Jenkins (CI) Maven (Builds) Apache (HTTP) Code JBoss Git Repo MongoDB HIGH LEVEL ARCHITECTURE
- 13. 13 by Broker Node Node Node RHEL HA-Proxy MongoDBJava Co de Java Co de Java Code AWS / CloudForms / OpenStack (IaaS) / RHEV (Virt) / Bare Metal AUTOMATED SCALING
- 14. 14 by RHEL Red Hat Enterprise Linux Node Public / Hybrid / Private / Virtualization / Bare Metal JBoss Code Git Repo DEVELOPER USER GIT/SSH cron logs sshd MySQL HTTP/S MY GEAR Broker (RHEL) Node (RHEL) Node (RHEL) REST Web Console Eclipse IDE Cmd Line SELinux GEAR My App jenkins Jenkins Maven CGroups
- 15. 15 by Architecture
- 16. 16 by OpenShift Architecture
- 17. 17 by BROKER The Broker is responsible for state, DNS, and authentication. The OpenShift Broker The PaaS Controller Subsystem
- 18. 18 by OpenShift Architecture
- 19. 19 by NODE The node hosts are responsible for holding application gears. The OpenShift Nodes The Application Host Systems
- 20. 20 by Communication from external clients occurs through the REST API The Broker then communicates through the messaging service to nodes Control Communications How Commands Are Delivered To the PaaS
- 21. 21 by DEMO TIME
- 22. 22 by Open Source Mapping with PHP and MongoDB Php application using OpenStreet Maps and Mongo Github: https://github.com/openshift-quickstart/silex-mongodb-parks Created by Ryan Jarvinen ( https://www.openshift.com/blogs/open-source-mapping-with-php-an )
- 23. 23 by Creating the gear One time Install ruby gem rhc Add openshift account to openshift.redhat.com Setup local environment: rhc setup Per application (like the OpenStreetMap app) rhc create app street php-5.4 mongo-2.4from-code= https://github.com/openshift-quickstart/silex-mongodb-parks.git
- 24. 24 by That's It ...... Access URL as prompted app is running Interesting commands rhc ssh rhc clone rhc apps rhc cartridge list Git is the glue to code push and pull