Cloud con Redhat OpenShift Flex: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 88: Line 88:




Choose a web programming cartridge
Elija un cartucho de programación web


Image 5<br />
Image 5<br />
[[File:PHP_apart.JPG|300px]]
[[File:PHP_apart.JPG|300px]]


1. Choose a type of application
1. Busque el tipo de aplicación




Line 99: Line 99:
[[File:Configure_de_application.JPG|500px]]
[[File:Configure_de_application.JPG|500px]]


2. Configure the application.
2. Configure la aplicación.


It is important to define the domain name, for this tutorial well, we used sdme. The domain, you cannot change it unless, we delete all our applications and start again from scratch and that is something that nobody wants.
Es importante, definir bien el nombre de dominio, para este tutorial, hemos usado sdme. El domino, no se puede cambiar más a menos que, borremos todas nuestras aplicaciones y empecemos nuevamente de cero y eso es algo que a nadie quiere.


Also, we will have to report, if we have an external git repository with our code.
También, tendremos que informar, si tenemos un repositorio externo Git, con nuestro código.




Here comes the fun part.
Aquí viene lo divertido.


In scaling change to Scale with webtraffic.
En scaling cambiaremos a Scale with web traffic.


The creation of this application, used a Gear of the 3 that we have, indicates precisely next to the Create Application button.
La creación de esta aplicación, usara un Gear de los 3 que disponemos, lo indica justamente, al lado del botón Create Application.


Click in Create Application.
Click en Create Application.


Image 7<br />
Image 7<br />
[[File:Console_startdolibarr_Application.JPG|500px]]
[[File:Console_startdolibarr_Application.JPG|500px]]


When the application is scalable, you cannot add more Cartridges, the Gear. For example we do want to use MySQL, you must go apart, another Gear.
Cuando la aplicación es escalable, no se puede añadir más Cartridges, al Gear. Por ejemplo sí queremos usar MySql, deberá ir aparte, en otro Gear.


In the image above, we see that our Gear, has added the load balancer, which will make our scalable application.
En la imagen, de arriba, vemos  que a nuestro Gear, se ha añadido el balanceador de carga, que hará nuestra aplicación escalable.


Up on the right end, there is also a button, in case we need to restart the Gear.
Arriba en el extremo derecho, existe también un botón, por si necesitamos reiniciar el Gear.


Note. - With PuTTY, we could resolve more explicit requirements to control our Gears with command line.
Nota.- Con PuTTY, podríamos solventar necesidades más explicitas, para controlar nuestros Gears, con línea de comandos.




Click on the link Web load Balancer.
Click en el enlace Web load Balancer.


Image 8<br />
Image 8<br />
[[File:HAProxy.JPG|500px]]
[[File:HAProxy.JPG|500px]]


HAProxy in Action.
HAProxy en Acción.


Image 9<br />
Image 9<br />
[[File:Aspect_your_webpage.JPG|500px]]
[[File:Aspect_your_webpage.JPG|500px]]


If we see our url startdolibarr-sdme.rhcloud.com this is the initial appearance, it has.
Si vemos nuestra url startdolibarr-sdme.rhcloud.com este es el aspecto inicial, que tiene.




== Part 2 - Setup admin tools ==
== Parte 2 - Configuración de Herramientas de administración ==


So far so good. Now to the second part of our tutorial.
Hasta aquí todo bien. Ahora, pasemos a la segunda parte, de nuestro tutorial.


For this part, will be referred to the administration of our application, there are two ways, the first is by CLI (command line based Ruby) and the second, more declarative form, console and SSH.
Para esta parte, que será la referida a la administración de nuestra aplicación, existen dos caminos, el primero es por CLI (línea de comandos basado en Ruby) y el segundo, de forma más declarativa, por consola y con SSH.


I chose the easiest way I've intuitive, which is the second option for this tutorial.
Para este tutorial, he elegido la forma más fácil he intuitiva, que es la segunda opción.




Hands to work.
Manos a la obra.


We need a SSH / FTP client like WinSCP and PuTTY.
Necesitamos un cliente SSH/FTP como WinSCP y PuTTY.


We download and install.
Los Bajamos y los instalamos.


Image 10<br />
Image 10<br />
155

edits

Navigation menu