Sunday, August 23, 2020
Understanding JavaScript Prototypal Inheritance for Java developers
Sunday, August 16, 2020
Using GCP Source Repository, Cloud Build to configure automatic deployment of docker container on Google Cloud Run
Introduction
In this article I will walk through the steps required to setup continuous integration environment and create build pipeline and automate deployment of a sample Angular App on Google Cloud Run. I will be using GCP stack end-end. Cloud Source Repositories for Git repository for version control, Cloud Build for creating docker containers which will be stored on Container Registry and then deploying the image on Cloud Run - serverless runtime environment. Finally, I will outline steps for configuring automated integration/deployment that will trigger builds and deployment of new version of application for any merge.
Key Concepts and Services
Cloud Source Repositories - Fully managed free git repository from Google Cloud to storing and version control of source code. Tightly integrated with Cloud Build for triggering build for continuous integration.
Docker - software that is most popularly used to build containers. Docker would combining the application code and set of instructions called DockerFile and produce a container that contains code all the required dependencies (listed as part of instructions in the docker file) to run the code.
Containers - a self contained environment that can be run on many platforms
Cloud Build - provide service similar to Docker and integrated with Cloud Source Repositories and can be triggered to produce container images and provides Continuous development and Continuous deployment. Cloud build can be configured to push the images to container registry and deployed to Cloud Run
Container Registry - Google Cloud Repository that can be used for hosting container images produced by Cloud Build
Cloud Run is fully managed serverless compute platform to deploy and running containerized application. Managed Serverless environment allows you to focus on your application and not worry about the underlying infrastructure or setting up and managing runtime environments.
Saturday, August 08, 2020
Installing VNC Server on Google Cloud CentOS VM
Introduction
Recently I installed VNC on CentOS 6 on GCP for some development work. Sharing my notes. The steps are similar for Redhat Enterprise Linux.
Concepts
VNC - Virtual Private Networking, a Graphical User Interface platform that can be accessed remotely
Steps
Create a VM
Create a CentOS instance in Micro VM Shape. To reduce latency choose a region close to you. Note that I'm using default VPC network that is automatically created. If you need more details on how to create VM pls refer my earlier blog
Tuesday, August 04, 2020
Hybrid Cloud - Setting up Site-to-Site IPSec VPN Connectivity between Oracle and Google Cloud
Introduction
Thursday, July 30, 2020
Creating a Utility VM on Google Cloud (GCP)
Introduction
This blog is in continuation of my previous article - Oracle OCI Cloud - Connecting a Private VM from a Public Bastion Host and walk through steps for creating a VM instance on Google Cloud GCP which we will use to establish VPN connectivity with Oracle Cloud - the steps for which will be outlined in next article in this series.
Here's a quick reference of configurations for this VM that we will be using in the next article while configuring VPN connectivity
VPC: gcp-oci-vpn-demo
VCN CIDR: 192.168.0.0/16
Subnet: subnet1
Region: europe-west1
Subnet CIDR: 192.168.0.0/16
VM: instance-1
Public IP: 35.210.10.232
Private IP: 192.168.0.2
Thursday, June 04, 2020
Oracle OCI Cloud - Connecting a Private VM from a Public Bastion Host
Introduction
This post talks about the necessary configurations of Router, Firewall, and builds a complete end-end example.
High-Level Steps
- Create VCN and two subnets (one public, one private)
- Create VMs - one in each subnet
- Configure Router
- Configure Firewall
- Test and Verify
- Access to OCI Instance
Pre-requisites
- User with necessary privileges to create VCN, VM and configure networking
- SSH key (public and private key pair) - Basic knowledge of networking - CIDR, Routers, Firewall, etc..
Monday, November 18, 2019
OIC: Monitoring REST APIs examples using curl
Getting logs
curl -X GET -H 'Authorization: Bearer access_token' -o <ics_log>.zip https://instance-name.us.oraclecloud.com/ic/api/integration/v1/monitoring/logs/{id}
curl -u username@email.com:password -X GET -H "Content-Type:application/json" -o flow_logs.zip https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsflowlog
Valid values for log id: icsflowlog, icsdiagnosticlog, icsauditlog
You can provide additional parameter for filtering the result - for example following will return data for last one day.
curl -u username@email.com:password -X GET -H "Content-Type:application/json" -o flow_logs.log https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsflowlog "q={timewindow: '1d'}"
For the next set of apis you can filter the result by time period, time window and also by the integration by adding following additional parameters
You can use time window as well - must be entered in - 'yyyy-MM-dd HH:mm:ss' UTC format
"q={startdate : '2016-09-23 07:07:07', enddate : '2016-09-23 08:17:07’}"
And filter the results for a given flow…
"q={timewindow: '3d', code: HELLO_WORLD, version: '01.02.0000'}”
Friday, October 18, 2019
OIC: REST APIs Examples for managing Integrations
Note that for the examples below I will be using one of the pre-packaged integration named Hello World (version 1.2.000)
To limit the size of this posting I'm just providing examples only and limiting to common use-cases (small subset of the options). For additional details and completeness pls refer the official doc - REST API documentation.
To get list of Integrations
curl -u username@email.password -v -H "Content-Type:application/json" -H "Accept:application/json" -X GET https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations
Export one integration
curl -u username@email.password -X GET -H "Content-Type:application/json" -o ./HELLO_WORLD_01.02.0000.iar_BAK https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations/HELLO_WORLD%7C01.02.0000/archive
Friday, October 11, 2019
OIC: List of Integrations by Creator
There the APIs to get list of integration in JSON format but at this point there is no out of box API support for filtering out the results by creator or author of the artifact. One can use common programming language to parse the filter out the results but that require additional effort.
In this blog, I will provide simple command line means of achieving that. We will use curl and one command line library to parse JSON data - https://stedolan.github.io/jq/
The following was developed and tested on Mac OS (Mojave 10.14.6 ) and OIC version 19.3.1.0.0 (190624.1100.29533)
Install jq
brew install jq
Get list of integrations
Replace the highlighted (in blue) for your environment...
curl -u username@email.com:password -H "Content-Type:application/json" -H "Accept:application/json" -X GET https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations | jq '. | {code: [.items[].code]}'
Friday, October 30, 2015
3 days in Amsterdam & around
Amsterdam is unique in many ways - historical buildings, more canals than Venice, more density of Museums than anywhere else in the world, more bikes than population, friendly and relaxed environment, and perhaps most liberal city you will visit with legalized recreational drugs, same-sex marriage, and euthanasia!
For my stay, I picked a hotel near Schipol Airport. Amsterdam city is about 15 - 20 mins train ride from the airport. You can buy 3-day Amsterdam Travel Ticket (25 euros) that allows you unlimited train, tram, and bus rides.
Thursday, October 29, 2015
3 days in London
Earlier this month I was traveling back from India to Los Angeles and took a break journey to spend 3 days in this beautiful metropolis (also spent some time in Holland - but that's for another post). Having born and brought up in India with centuries of colonial rule, Britain has a profound influence on India's history and culture. So, it was an even greater interest that I was looking forward to my visit to London.
I had some luggage so picked a hotel near Heathrow airport in Hounslow City - in the hindsight not a good idea to stay far from central London since wasted so much time every day traveling to the city.
London is very well connected by train/bus and oyster travel-card that allows to travel on any train/tube or bus is perhaps the best way to move around - great value and saves you a lot of time - I bought a 3-day pass for around 20 pounds. I also bought London Pass (approx 80 pounds) separately that cover entry ticket for most attractions (note you can purchase Oyster Travelcard with London Pass also)
Wednesday, May 01, 2013
My best golf round so far - 2 over
This eclipses my previous best of 73 at Alhambra Golf Course which is bit easier course to play - rating/slope/rating of 64.8/114. Measuring around 6200 yrds Azusa Greens is not really long with rating/slope of 69/118 but some fairways are narrow with trees on the side.
Sunday, February 10, 2013
Pilot for a day
Friday, September 28, 2012
Oracle BPEL Engine (SOA Suite) Diagnostics - Parsing low level request stats
Wednesday, July 25, 2012
Golf Tournament - 5th SS Bajwa
Monday, July 23, 2012
Good Magazine
A few years back I got introduced to Good Magazine during one of the Consumer Marketing class I took. Ever since I'm hooked on to this great magazine. In this blog entry, I'll review this magazine and outline what I like about it.
Good Magazine, henceforth referred to as GOOD (as they like to call them as), sets up their mission in their ‘about’ section on their website. It says and I quote “GOOD is a collaboration of individuals, businesses, and nonprofits pushing the world forward. Since 2006 we've been making a magazine, videos, and events for people who give a damn."
Further their website defines their magazine as following in a very powerful and no-nonsense manner:
In a world where things too often don’t work, GOOD seeks a path that does. Left, right. In, out. Greed, altruism. Us, them. These are the defaults and they are broken. We are an alternative model. We are the reasonable people who give a damn. No dogma. No party lines. No borders. We care about what works--what is sustainable, prosperous, productive, creative, and just--for all of us and each of us. This isn’t easy, but we are not afraid to fail. We’ll figure it out as we go.
BPEL SE (Java CAPS) Monitoring Console
The BPELMonitoring Console monitors your BPEL Service Engine's applications and business
processes, allowing you to quickly discern the health of your system. The console is designed to provide a comprehensive view of your current applications. It provides a real-time representation of your business processes throughout the life cycle of each instance. The console also enables you to drill down to see what is happening with any specific application or process. It allows you to track down a business process based on customer information and to suspend and resume an instance for system maintenance.
The BPEL Monitoring Console runs as an independent web application and can run from a
remote computer. The console runs on the Glassfish server in a GlassFish ESB environment.
Sunday, July 22, 2012
BPEL SE (Open-ESB) Scalability Support
Scalability Support for BPEL Service Engine
The complete solution for the scalability of system is co-coordinated work of all the constituent parts; service engines, binding components and NMR. When the system starts maxing out heap space, the full GC kicks in and ‘pauses’ the JVM. This has a debilitating effect on system performance. A properly designed system is expected to know the expected usage and provide enough resources for capacity utilization.The specific problem in the context of business process orchestration involving interactions with external systems is the in-determinism in terms of responses for the outbound requests. When that happens the business process instances continue to hog memory and new requests for such processes would only aggravate the memory situation.
Since BPEL SE is the only component currently in the open-esb that can be configured to be used with a database, we can leverage this to provide scalability for long-running processes. Also, the BPEL SE scalability solution needs to be thought in conjunction with its recovery and monitor capabilities. In my opinion, the best solution is to have a very large heap space and nothing else would be required. But, if that cannot happen, at least with 32-bit boxes, and also for other reason s scalability solution as outlined here for BPELSE can help.
The scalability solution can be called in phases based on early detection and also following some patterns of business process behavior. The complete solution may be complex, but taking a trivial approach may not solve most (if not all) the use cases. Since the primary mechanism for the scalability solution of the BPEL Service Engine is passivation, there will be some overhead associated with that happens. Also, in order to minimize the overhead and not be overly aggressive about it, an attempt will be made to do the passivation in phases with each phase providing incremental relief.
BPEL SE (Open-ESB) Clustering Design
Architecture and Design Document of BPEL Service Engine Support for clustering & Failover
To achieve Scalability and High Availability for BPEL Service Engine running in JBI environment. A cluster is defined as a set of engines running in multiple JBI Environments running in Application Server Cluster. When a business process needs to be scaled to meet heavier processing needs, you can deploy Service Assemblies to BPEL Service Engine running on the application server cluster to increase throughput.
Failover:
To achieve transparent failover of running instances of the failed engine in cluster over to any live engine for continued processing.
BPEL Service Engine (Open-ESB)
Understanding JavaScript Prototypal Inheritance for Java developers
Inheritance is a fundamental concept in programming languages. However, it is implemented differently in Object-Oriented Languages such as J...
-
The last major task I did during Sun days was the building of a new Monitoring console for the BPEL Service engine. It was a complete rewr...
-
Expanding upon the last article I'm providing additional details and examples for using Oracle Integration Cloud REST APIs for managing...
-
Originally published on Dec 28, 2010 Ok, so far in my previous blog entries about finding 2nd minimum (and for repeating elemen...


