DNS Lookup and Ping Times Measurement with Grafana on Oracle Container Cloud Service

Welcome back to a new posting about the Oracle Container Cloud service(OCCS). In my previous OCCS blog posting I went through some details of the brand new OCCS.

In the following webcast I try to measure some key characteristics like DNS lookup and ping times for major industry websites such as cloud.oracle.com, google.com and munzandmore.com. All the measurements are done from probes running in various capitals throughout the world. The important thing to understand is that we not measuring times from the Oracle Cloud to somewhere.

The results actually show that cloud.oracle.com is on a par with google.com and both obviously beat my own domain which is not a big surprise.

Grafana is visualizing the results of these probes. It is running in a Docker container which is running on Oracle Container Cloud Service (OCCS) – the newest addition to the Oracle Cloud.

Enjoy the webcast. Let me know if you have some interesting findings about measurements with Grafana and the worldping plugin or the Oracle Container Cloud service! For sure I will post more about it later.

 

 

Oracle Container Cloud Service (OCCS)

Docker has undergone a dramatic evolution in only the last couple of years. From virtually unknown in 2014, it still seemed to be a exotic, niche open source solution when WebLogic was certified on Docker in early 2015.

Nowadays this is different. End of 2016 it has become very common to explore new software by just running an official Docker image from Docker hub. CI / CD pipelines are often built on Docker for repeatability. Docker is one of the key building blocks for runtime environments of those wandering down the microservices alley.

However, you need much more than just a starting a Docker container or two. You need infrastructure, networking, private and public registries, containers have to be scaled and restarted if they fail. All this needs to be installed, configured, and operated. On premises this is not an easy task.

There is a huge difference between spinning up a Docker container and operating a Kubernetes cluster for enterprise critical applications 24/7 in production. So the the obvious choice is often the cloud with a PaaS based container cloud service.

Oracle Container Cloud Service (OCCS) is the newest addition in the Oracle Cloud portfolio. It was built to solve the issues discussed in this posting. The following webcast helps you to understand the key components of OCCS. If you follow it, you can have a worldwide monitoring of your own domain running in some 5 minutes on a hosted Docker container.

Those who know my WebLogic Distinctive Recipes book understand that I am not a big fan of those click here, screenshot, then click there, screenshot articles – therefore I created the webcast for you with a working example that is not already in OCCS. Make sure to read the OCCS documentation anyway.

 

Let me know if you like it!

 

Tips and Tricks for Oracle Container Cloud Service (OCCS)

Some days ago I posted a longer getting started with OCCS webcast which should serve as a good introduction if you are new to OCCS. Also I posted about using OCCS with Grafana on Docker for network latency measurements.

In this article I will provide a number of tips and tricks I discovered while exploring  OCCS.

Keep in mind that OCCS is the newest addition in the Oracle Cloud portfolio. Everything I tried was stable so far. Note that this article – like all my other articles actually – reflect my opinion . Maybe some of the items below will help you to get your containers running easier!

This list is not complete yet and I will extend it as I discover new things around OCCS. Drop me a comment below if there is anything you want to be added here. I am curious about your own experiences.

OCCS Tips and Tricks

  • Do you have trouble logging into Oracle Cloud? I recommend to have a look at my other posting and check here.
  • The provisioning of the service (i.e. the underlying machine) seems to depend on the instance size. Small instances are provisioned in the range of several minutes. However in the Europe 2 data center I waited between 2h and 3h until the service was provisioned on a OC3 instance. Let me know if your experience is different e.g. the provisioning is faster in the US.
  • Starting up a container is much quicker than provisioning the underlying service.
  • The container console itself is surprisingly well hidden. It had to look into the tutorial to find it :-(. You can find it here:
  • If you want to start an OCCS container with a docker image that is started with a -d flag from the command-line, don’t worry. OCCS runs all containers as daemons, so you don’t have to provide this flag.
  • If something went wrong and you look for log output of your container, then check under
    Container / Name / View Logs.
  • Sometimes you will experience that containers are “flapping”. This means they are started but run into an error. Then they are started again, etc. Check the logs to find out what is happening and stop the container.– this posting will be continued once I discover more tips and tricks for OCCS.
  • If you run the classic example
    docker run hello-world

    the container will be restarted once it is finished, so technically it will be flapping. It is quite likely that OCCS will support a flag in the future to run special containers only once. Note that this is not the typical enterprise use case anyway but more more a first step of what devops try on the command-line.

  • You can use SSH to connect to the OCCS manager nodes, however you cannot connect to the worker nodes as of now. The manager node is running a very restricted VM environment with some essential tools like vi, cat, rm, cp etc. only. To connect to the master node use the private key that was generated when you set up the service and the following syntax:
    ssh -i privateKey opc@PUBLIC_IP
  • It would obviously be interesting if OCCS would offer services out of the box for the Oracle supported Docker images from https://github.com/oracle/docker-images.
  • The Container Console is using a self signed root certificate and therefore creating a browser warning. This is nothing severe but Oracle should document a way to install your own X.509 certs to avoid the warning.
  • From 10,000 feet OCCS might look vaguely similar to Kubernetes, but OCCS is not based on Kubernetes. Actually Kubernetes is more complex to set up and to operate. OCCS’ goal is “to provide an easy and powerful way for enterprises to run their containers on our service”.

At the end, your goal should be to be able to run your own Docker image on OCCS. Give it a try!