Tagged ORACLE JAVA CLOUD

Limit Load in your Applications Configuring Oracle Traffic Director in Java Cloud Service


Every instance of JCS (Oracle Java Cloud Service) can be provisioned with OTD (Oracle Traffic Director). Oracle Traffic Director is a software load balancer that runs inside OPC (Oracle Public Cloud) or Oracle Engineered Systems such as SuperCluster or Exalogic. Having a LBR “inside” provides internal balancing mechanism avoiding the loss of performance and configuration complexity existing when you must load balance cluster backend servers with an external load balancer. Until now if you wanted to limit the load in your weblogic servers you needed to implement several mechanisms such as workmanagers, serverfilters, etc. OTD admin user interface provides Request Limits, a wizard that allows to configure request limits per virtual server. You can have a virtual server per application, therefore you can define different quality of service SLA’s for each application. In addition you can define rules to apply the limit based in url pattern matching.

otdrequestlimits

Test it quickly setting a OTD Request Limit of 1 request per second and create a jMeter test plan with two threads requesting a page of a sample application deployed in WLS. otdrequeslimitsjmetertest1 You’ll notice that several requests are rejected with messase “The server is too busy to respond to your request. Please try again later.”

otdrequeslimitsjmetertest

Enjoy 😉

Deploy an Oracle ALTA UI ADF Application to Oracle Java Cloud Service Dedicating More or Less One Hour of Your Time


altauideploy

This is a compilation of tutorials that aims to show how you can deploy a ready to run demo application built with the Oracle ALTA UI user interface look&feel.

You are creating a lot of infraestructure and software elements in a few clicks such as a database instance, a complete weblogic cluster ready to deploy java applications and with a load balancer on top. Provission times for OPC instances may vary from half an hour to a couple of hours more or less. You can dedicate this iddle time to prepare the next steps of the tutorial.

1-Download jDeveloper 12c from http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html

2- Download Putty from http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip and create public and provate keys as stated here http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/javaservice/JCS/JCS_SSH/create_sshkey.html

3- Create a DbCS instance with “backup to both” option (needed for JCS instance creation later on). See instructions here https://apexapps.oracle.com/pls/apex/f?p=44785:112:0::::P112_CONTENT_ID:10799

4- Create storage container for JCS backup following https://apexapps.oracle.com/pls/apex/f?p=44785:112:0::::P112_CONTENT_ID:10888 or alternatively using this link https://www.dropbox.com/s/13t9gzpyqzhk2zg/BACKUP%20TO%20DBBS%20HANDS-ON.pdf?dl=0

5- Create JCS instance following this link https://apexapps.oracle.com/pls/apex/f?p=44785:112:0:::112:P112_CONTENT_ID:10021

6- Download WorkBetter Alta UI demo from http://www.oracle.com/technetwork/developer-tools/jdev/index-098948.html#alta

7- Open the application with jDeveloper and package it as EAR.

8- Deploy to JCS instance using Fussion Middleware Control

fussionmiddlewarecontrol

fmwcontroldeploy

9- Test your deployment https://<yourpublicotdip>/WorkBetterFaces/faces/index such as https://160.34.11.101/WorkBetterFaces (the link may not work in the future, demo account is being utilized courtesy of Oracle Corp)

Enjoy 😉

Probando Oracle Java Cloud Service (SaaS extension)


Vamos a realizar unas pruebas sencillas con este servicio.

Primero debemos solicitar una cuenta en el enlace https://myaccount.cloud.oracle.com/mycloud/faces/trialsignup.jspx?serviceType=JAVA

Screenshot from 2014-12-18 22:38:19

Recibiremos notificaciones por correo cuando el servicio esté aprovisionado. La notificación incluye instrucciones sencillas y credenciales de acceso:

Screenshot from 2014-12-18 22:26:07

El servicio Java incluye uno de bbdd, en el dashboard vemos ambos:

Screenshot from 2014-12-18 22:40:40

Desde el dashboard vamos al JCS:

Screenshot from 2014-12-18 22:31:13

Pulsamos en el botón [Java Console]:

Screenshot from 2014-12-18 22:45:18

En la consola, en el panel Applications pulsanos en [Deploy New] y desplegamos un artefacto:

Screenshot from 2014-12-18 22:48:02 Screenshot from 2014-12-18 22:48:36

En el panel Jobs podemos ver el resultado de los despliegues:

Screenshot from 2014-12-18 22:49:57

Si todo ha ido bien podremos probar la app:

Screenshot from 2014-12-18 22:51:59 Screenshot from 2014-12-18 22:52:08

En la welcome-app que viene desplegada con el servicio encontraremos la documentación del SDK:

Screenshot from 2014-12-18 22:53:50

Continuará…