<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Devayon D on Medium]]></title>
        <description><![CDATA[Stories by Devayon D on Medium]]></description>
        <link>https://medium.com/@dev.das?source=rss-b2cef6f0db78------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*kM0HhPPujEy7OwbeXqluVw.jpeg</url>
            <title>Stories by Devayon D on Medium</title>
            <link>https://medium.com/@dev.das?source=rss-b2cef6f0db78------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:09:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dev.das/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[On Hashicorp Nomad]]></title>
            <link>https://medium.com/@dev.das/on-hashicorp-nomad-196b2320c1bc?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/196b2320c1bc</guid>
            <category><![CDATA[rant]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 23:24:48 GMT</pubDate>
            <atom:updated>2020-02-11T23:21:21.824Z</atom:updated>
            <content:encoded><![CDATA[<p>Nomad by Hashicorp (the makers of Vagrant and Packer that I already use and love, and Vault that I should be using) is a “container” orchestration tool that enables us to deploy and manage any containerized or legacy application using a single, unified workflow.</p><p>Nomad is <a href="https://github.com/hashicorp/nomad">open source </a>, under a permissive , has a an <a href="https://www.nomadproject.io/docs/enterprise/index.html">enterprise </a>version. However, as far as I could tell, Nomad is not available as a PaaS; you would have to install it to make a PaaS out of your infrastructure.</p><p>We use the term “container orchestration” loosely for Nomad, because apart from deploying OCI containers (such as what DC/OS, Kubernetes, Docker Swarm do) Nomad can also run code on a VM / bare-metal OS without using containers. This makes it suitable for managing apps that cannot be containerized so easily today.</p><p>Nomad is especially useful if parts of your deployment need to run on Windows or MacOS apps. Windows added native containerization only in WindowsServer 2016 and the only commercially available container service for “Windows Server Images” are available in Azure. (Although both Kubernetes and CloudFoundry are going to add support, as of writing, there is no practical solution yet)</p><p>There is no well known native container solution for MacOS.</p><p>Note that I are talking about native Windows and MacOS apps. Windows and MacOS can run Linux containers using Docker/Minikube, etc but all of these use a VM inside Windows/MacOS.</p><p>Nomad depends on hashicorp Consul for config management and service discovery. It optionally uses Hashicorp Vault for secret management.</p><p>A Nomad cluster has one instance of Hashicorp Consul and multiple instances of Nomad.</p><p>Nomad daemons elect one as the leader and use Consul to detect each other and store configuration.</p><p>If there are multiple datacenters, you would have one Consul per datacenter, data would also be isolated to each datacenter, but the one Nomad leader would coordinate between datacenters. This allows good scaling and recovery across datacenters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/0*JR5UAlo3iS-YH_Ol.png" /></figure><p>If you intend to run containers, it is likely that you would want to install Docker on all the nodes as well as an instance of Vault for secret management. Nomad’s github repo has Terraform templates to do this for you.</p><p>Container orchestration goes hand in hand with network orchestration. There are a couple of problems here to solve:</p><ol><li>How will each job (containers or otherwise) find and talk to each other?</li><li>How will we expose containers to the external world using a load balancer?</li><li>Can one group of containers representing one service talk to another service group without know the exact address of the container.</li></ol><p>Kubernetes (and even CloudFoundry to some extent) has a much richer way of routing networking, that helps legacy apps that have been containerized. On the other hand, Kubernetes networking model is complex, hard to understand, and has so many pieces that can be swapped for each other that each distribution of Kubernetes may be doing something different for network management.</p><h3>Installation</h3><h3>Playground on my laptop</h3><p>A Nomad playground can be installed on your laptop very easily using Vagrant [<a href="https://www.nomadproject.io/intro/getting-started/install.html">source</a>].</p><p>Install Vagrant</p><pre>wget <a href="https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/Vagrantfile">https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/Vagrantfile</a></pre><pre>vagrant up</pre><h3>On the cloud</h3><p>You can also use Hashicorp Terraform to setup a cluster on AWS or Azure. See <a href="https://github.com/hashicorp/nomad/tree/master/terraform">https://github.com/hashicorp/nomad/tree/master/terraform</a></p><h3>Other Deployments</h3><p>Nomad is a single binary so we can start them up on any node and connect multiple instances to form a cluster. See <a href="https://www.nomadproject.io/guides/operations/deployment-guide.html">deployment guide</a> for details.</p><h3>Starting up Nomad daemon</h3><p>I started off a vagrant image of Nomad as per the docs:</p><pre>wget<a href="https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/Vagrantfile">https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/Vagrantfile </a> vagrant up</pre><p>Now I start up a daemon using:</p><pre>vagrant ssh wget<a href="https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/server.hcl">https://raw.githubusercontent.com/hashicorp/nomad/master/demo/vagrant/server.hcl </a> nomad agent -config server.hcl</pre><p>Just like CloudFoundry, or Kubernetes, each client machine also has the nomad cli installed. We use another terminal to create a job:</p><pre>vagrant ssh nomad job init</pre><p>This creates an example sample job file called example.nomad . We can rename and edit it and then run it like so:</p><pre>nomad job run example.nomad</pre><p>The example file that nomad created contains all the documentation and starts up a Docker container. We can see the status here.</p><pre>nomad status example</pre><p>In this case, since it is a docker container, we could verify this using</p><p>Finally we can stop the job using:</p><pre>nomad job stop example</pre><p>Here’s a demo of the UI: <a href="https://demo.nomadproject.io/ui/jobs">https://demo.nomadproject.io/ui/jobs</a></p><p>What I liked about the Ui was that it was very fast and had websockets so that when I started or killed a job using the nomad cli, it would immediately respond.</p><p>There is a minor release every 3 months or so, with patch releases coming out multiple times a month. Nomad is still has not reached version 1.0 release yet (as of writing, the latest stable release is 0.8.6)</p><ol><li>As far as , all contributors remain from Hashicorp. There are pull requests, but as much as I tested, seemed to be Hashicorp developers.</li><li>is a good (if not long) post about why a team chose Nomad over kubernetes. Their main reasons were that they weren’t always using containers, they did not need to scale so much, and were already using Hashicorp Consul. None of those facts are true for most companies. This is still a worthwhile read.</li><li>I was unable to find mentions of people using Nomad in production [ , <a href="https://news.ycombinator.com/item?id=15977170">hacker news </a>] or at least not willing to share any feedback. No customers mentioned in their website too</li></ol><p>Nomad is free and open source. The pricing for Enterprise version is not available, we’ll need to set up a call. Features such as Namespaces are only available in Enterprise mode.</p><h3>Kubernetes</h3><p>Kubernetes is the winner in container orchestration world — it has the greatest mindshare, contributors, and distributions. However Nomad has the following advantages:</p><ol><li>The deployment mechanism of Nomad is much simpler. It comes with one binary that you need to deploy on all node. On the other had K8S requires many different dameons, and the configuration is difficult enough that they recommend using a distribution such as GKE, EKS, etc</li><li>Containers composed into “pods” is the basic unit of code that Kubernetes understands. Therefore if your code cannot be containerized, Kubernetes is not useful. Nomad can orchestrate containers but can also manage native apps.</li><li>Nomad claims that they scale to more worker nodes than Kubernetes (5K nodes vs 10K nodes). However it is unlikely that we will hit those limits.</li><li>Kubernetes has built in secret and config management and service discovery, while Nomad uses Hashicorp Vault for config/secret management and Consul for service discovery. These products are independent on Nomad and are widely used elsewhere (even in some Kubernetes deployment). This makes better tooling for upgrades in Kubernetes, but cleaner architecture in Nomad.</li></ol><h3>CloudFoundry</h3><p>CloudFoundry Application Runtime and even Heroku have a much better developer experience. To submit a Nomad “Job”, one needs to write a nomad job file, while in Cloudfoundry, it is as simple as “cf push”.</p><p>However note that in production system we do not want developers to run “cf push”, instead we’d like all the changes kept in a config file, so that they are documented and can be diffed. Therefore the advantage only stands as far as developer experience is concerned, not true production, or support scenarios.</p><p>CloudFoundry attempts containerization on Windows using their own custom framework called CloudFoundry Windows Garden (aka Greenhouse), but these are not supported by by Microsoft natively and is likely to be replaced by Windows Server Images.</p><p>Nomad is a great example on how to make deployment and use of software a breeze. If software is given to customers, this is how easy and elegant the ops experience should be.</p><p>However, as a product, Nomad doesn’t have enough features, or market share. It is a niche product maintained by only one company.</p><p>I would suggest using at Kubernetes instead.</p><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2019/01/07/on-hashicorp-nomad/"><em>http://devayon.wordpress.com</em></a><em> on January 7, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=196b2320c1bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Cloud Foundry]]></title>
            <link>https://medium.com/@dev.das/on-cloud-foundry-244e2ea3509f?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/244e2ea3509f</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[cloud-foundry]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 22:24:01 GMT</pubDate>
            <atom:updated>2020-02-11T23:26:47.940Z</atom:updated>
            <content:encoded><![CDATA[<p>(I did some research the other day, thought why let it go to waste, best push it out onto the ether)</p><h3>Introduction</h3><p>Cloud Foundry is an open source, multi-cloud application platform as a service (PaaS) governed by the Cloud Foundry Foundation. The software was originally developed by VMware and then transferred to Pivotal Software, a joint venture by EMC, VMware and General Electric.</p><p>CF allows you to focus on Applications and Data, instead of infrastructure, OS, Networking, security, as you can see below:</p><p>Some strong competitors to CF would be Kubernetes, ECS, Juju, DC/OS and Docker Swarm.</p><p>Cloud foundry consists of two platforms [<a href="https://www.cloudfoundry.org/docs-download/">ref</a>]:</p><ol><li><strong>BOSH</strong>, an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services. It’s the default deployment and management platform for Cloud Foundry operators. BOSH installs and updates software packages on large numbers of VMs over many IaaS providers with the absolute minimum of configuration changes. <a href="https://bosh.io/docs/">https://bosh.io/docs/</a></li><li><strong>Runtime: </strong>Your Applications are run on a runtime that manages containerization, routing, scheduling, logging, etc. In effect, you will tell Cloud Foundry to “run this app, I don’t care how”. The runtime is deployed on the VM’s by BOSH (therefore sometimes these are called ‘Bosh Releases’). You have a choice of two runtimes:</li><li><strong>CloudFoundry Application Runtime (CFAR)</strong> — the default runtime in cloudfoundry, which uses a container orchestration framework called Diego (which itself replaces an earlier system called DEA). <a href="https://docs.cloudfoundry.org/">https://docs.cloudfoundry.org/</a></li><li><strong>CloudFoundry Container Runtime (CFCR)</strong> — With the rise of Kubernetes, CloudFoundry now allows an alternative to CFAR, that replaces Diego with standard Kubernetes. <a href="https://docs-cfcr.cfapps.io/">https://docs-cfcr.cfapps.io/</a></li></ol><p>Therefore, you would use BOSH and (CFCR OR CFAR). There are other CloudFoundry projects as well. The full list is <a href="https://www.cloudfoundry.org/projects/">here</a>. However, by CloudFoundry, people usually mean Bosh and CFAR/CFCR. You could deploy both CFAR and CFCR of course, but in a sense they are competitors.</p><h3>BOSH</h3><p>Bosh is a toolchain that is used to deploy virtual machines on various IaaS providers. It provides a cli that you can install on your laptop, provisions VMs (and storage and other resources for the VM), installs OS, and an agent on those VMs. Bosh then can be used to to deploy and monitor software on these VM’s, and scale them if necessary. It also contains a DNS server to route data through the network. It contains a blobstore for</p><p>Think of BOSH as “Kubernetes for VMs”. Here’s the high-level architecture of BOSH:</p><p>BOSH uses a Cloud Provider Interface (CPI) to work with the <a href="https://bosh.io/docs/quick-start/">following</a> IaaS providers (“environments” in BOSH terminology):</p><ul><li>Azure</li><li>GCP</li><li>AWS</li><li>OpenStack</li><li>Softlayer</li><li>VirtualBox</li><li>VMware vSphere</li><li>VMWare vCloud</li></ul><p>The VM Images (“stemcells” in BOSH terminology) can be of the <a href="https://bosh.io/stemcells/">following</a> OS’es:</p><ul><li>Ubuntu</li><li>Windows</li><li>CentOS</li></ul><p>CF BOSH was created as a tool for deploying the Cloud Foundry Application Runtime, but can be used to monitor and deploy any software.</p><p>Since BOSH contains health monitoring, it can be used to <a href="https://bosh.io/docs/resurrector/">auto-heal </a>and <a href="https://docs.cloudfoundry.org/concepts/high-availability.html">autoscale</a> VM’s. BOSH documentation says that it can spin up VM’s within an availability zone, spin up VM’s of different physical servers (aka <a href="https://bosh.io/docs/vm-anti-affinity/">VM anti-affinity</a>, on vSphere and OpenStack only), spin up VM’s in a different Availability Zone, as well as across Cloud Providers [<a href="https://bosh.io/docs/cpi-config/">ref</a>]. These provides some strong guarantees that outages will not take the BOSH cluster down (apart from the BOSH Director node).</p><p>For App instance and Process level failure (as shown above), we will use one of the CF Runtimes, not BOSH itself. BOSH has very basic process monitoring, which we use to monitor the CF Runtime.</p><p>Programs deployed by BOSH are called Releases, and therefore CF runtimes are nothing but special kinds of BOSH releases.</p><h3>Competitors</h3><p>I could not find any software which does all of these (Infra provisioning, software install and monitoring) but here are some notable competitors, ordered by usefulness. I’m leaving out Container orchestration systems such as Kubernetes.</p><ol><li>Hashicorp Terraform (multi-cloud IaaS provisioning, does not install software, does not monitor) and Nomad (deployment and monitoring of software, better multi-cloud orchestration, greater OSes supported)</li><li>Juju (from Canonical) does almost everything BOSH does, except rolling updates[<a href="https://www.altoros.com/blog/cloud-foundry-deployment-tools-bosh-vs-juju-charms/">ref</a>]. The other issue is that the deployment OS can only be Ubuntu. (with experimental support for CentOS)</li><li>Ansible (uses plugins for IaaS provisioning, installs software, does not monitor)</li><li>AWS Cloudformation Stacks (works only on AWS)</li><li>Azure ResourceManager (works only on Azure)</li><li>Google Cloud Deployment Manager (works only on GCP)</li><li>Chef and Puppet (won’t provision Infrastructure, but can do software install and monitoring)</li></ol><h3>CloudFoundry Application Runtime</h3><p>CF Application Runtime is a PaaS that is deployed and monitored by BOSH. The CF Application Runtime allows you to deploy apps into the platform.</p><p>CF Application Runtime (<strong>CFAR</strong>) takes code in any language and runs it on any cloud</p><ul><li><strong>Run this app I don’t care how</strong></li><li>Opinionated deployment and dependency management using buildpacks (or you can let CF figure it out)</li><li>Resource (memory/CPU) restrictions using manifests (or you can let CF figure it out)</li><li>Out-of-box logging, metrics, tracing, monitoring</li><li>Create services on demand, and bind service dependencies.</li><li>Fully automated ops: deploy, scale, patch, upgrade.</li></ul><p>Unlike other container management systems (such as Docker-swarm, DC/OS, Kubernetes or even CFCR), CFAR does not just take (docker) container images as its input. Instead, it natively supports many popular languages and frameworks, and can containerize them while deploying them (thus abstracting out the containerization step away from the developer). For example, if you deploy a jar, CF will inspect the embedded pom.xml file, download the dependencies, download them into the cloud and run the jar. It supports the following “<a href="https://docs.cloudfoundry.org/buildpacks/">buildpacks</a>”:</p><p>NameSupported Languages, Frameworks, and TechnologiesGitHub Repository<a href="https://docs.cloudfoundry.org/buildpacks/binary/index.html">Binary</a>n/a<a href="https://github.com/cloudfoundry/binary-buildpack">Binary source</a><a href="https://docs.cloudfoundry.org/buildpacks/go/index.html">Go</a>Go<a href="https://github.com/cloudfoundry/go-buildpack">Go source</a><a href="https://docs.cloudfoundry.org/buildpacks/java/index.html">Java</a>Grails, Play, Spring, or any other JVM-based language or framework<a href="https://github.com/cloudfoundry/java-buildpack">Java source</a><a href="https://docs.cloudfoundry.org/buildpacks/dotnet-core/index.html">.NET Core</a>.NET Core<a href="https://github.com/cloudfoundry/dotnet-core-buildpack/">.NET Core source</a><a href="https://docs.cloudfoundry.org/buildpacks/node/index.html">Node.js</a>Node or JavaScript<a href="https://github.com/cloudfoundry/nodejs-buildpack">Node.js source</a><a href="https://docs.cloudfoundry.org/buildpacks/php/index.html">PHP</a>Cake, Symfony, Zend, Nginx, or HTTPD<a href="https://github.com/cloudfoundry/php-buildpack">PHP source</a><a href="https://docs.cloudfoundry.org/buildpacks/python/index.html">Python</a>Django or Flask<a href="https://github.com/cloudfoundry/python-buildpack">Python source</a><a href="https://docs.cloudfoundry.org/buildpacks/r/index.html">R</a>R<a href="https://github.com/cloudfoundry/r-buildpack">R source</a><a href="https://docs.cloudfoundry.org/buildpacks/ruby/index.html">Ruby</a>Ruby, JRuby, Rack, Rails, or Sinatra<a href="https://github.com/cloudfoundry/ruby-buildpack">Ruby source</a><a href="https://docs.cloudfoundry.org/buildpacks/staticfile/index.html">Staticfile</a>HTML, CSS, JavaScript, or NGINX<a href="https://github.com/cloudfoundry/staticfile-buildpack">Staticfile source</a><a href="https://docs.cloudfoundry.org/buildpacks/nginx/index.html">NGINX</a>NGINX<a href="https://github.com/cloudfoundry/nginx-buildpack">NGINX source</a><a href="https://docs.cloudfoundry.org/buildpacks/hwc/index.html">HWC</a>HWC<a href="https://github.com/cloudfoundry-incubator/hwc">HWC source</a>DockerDocker<a href="https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html">docs</a></p><p>Essentially CFAR is creating the container with you binary behind the scenes. Multiple processes need run in a container, or if the structure is complex, you can fall back to native Docker containers (Docker support may not be enabled by default, also the docker container must be purpose built for CFAR [<a href="https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html">ref</a>]).</p><h3>A Note on Security</h3><p>CFAR allows isolation of application in Isolation Segments and RBAC. See <a href="https://docs.cloudfoundry.org/concepts/roles.html">https://docs.cloudfoundry.org/concepts/roles.html</a></p><h3>CloudFoundry as a service</h3><p>CFAR need not be deployed by you on the cloud. You could instead use CFAR as a service from multiple providers. See <a href="https://www.cloudfoundry.org/certified-platforms/">https://www.cloudfoundry.org/certified-platforms/</a> Below you can see some examples where we deploy our apps by CFAR provided as a PaaS by Pivotal itself.</p><h3>Deploying an App in CFAR</h3><p>I was using maven, so after a build, I could… (much like heroku)</p><ul><li>cf push devayon -p target/my-app.war</li><li>Check it out : <a href="http://devayon.cfapps.io/">http://devayon.cfapps.io/</a></li></ul><h3>Deploying a Docker Container in CFAR</h3><ul><li>cf push devayon-d–docker-username mydockerusername –docker-image imagename</li><li>Open browser to: <a href="http://devayon-d.cfapps.io/">http://devayon-d.cfapps.io/</a></li></ul><p>Note that CFAR figures out automatically which port to bind to because there was only one port exposed in the Dockerfile [<a href="https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html">ref</a>]</p><p>At this point, management of the app can be done, for example:</p><ul><li>cf apps</li><li>cf logs devayon –recent</li><li>cf scale devayon -i 4</li><li>cf delete devayon -r -f</li></ul><h3>Competitors</h3><p>CFAR’s competitors fall in a couple of groups:</p><ul><li>Hashicorp Nomad (deployment and monitoring of software, better multi-cloud orchestration, greater OSes supported)</li><li>Container Orchestrations frameworks such as Kubernetes (and its various flavors), Docker Swarm, Mesos-DC/OS, ECS and CloudFoundry Container Runtime</li><li>Juju</li><li>hadoop yarn</li><li>PaaS such as Heroku, AWS Lambda, Google App Engine, DigitalOcean OpsCaptain</li></ul><h3>Comparing to Kubernetes</h3><ul><li><strong>Run this containerized app for me, let me tell you how</strong></li><li>Ideal for apps that expose multiple ports and when finer granularity of control is needed</li><li>Kubernetes has some disadvantages:</li><li>Hard to operationalize</li><li>No out-of-box HA on cluster components (master and etcd nodes)</li><li>Scaling of services within a pod, but no scaling of Masters and etcd VMs.</li><li>Check health only on Nodes</li><li>Kubernetes has some advantages</li><li>It is the most successful container orchestration framework on the market (with a larger number of contributors than cloud foundry)</li><li>It has built in secrets manager, uses TLS for internal communication, has config manager.</li><li>All major cloud providers natively provide Kubernetes as a Service (and do HA for the control plane). Most of these do not change for the control plane at all.</li></ul><h3>CloudFoundry Container Runtime</h3><p>Cloud Foundry Container Runtime (<strong>CFCR</strong>, formerly Kubo and donated by Pivotal and Google) is an open source CF runtime that allows you to run a Kubernetes cluster on top of BOSH which gives all the benefits of BOSH including multi-cloud support, HA of Kubernetes cluster components, and scalability of Master and etcd node VMs. Pivotal Container Service (PKS) is the commercial version of CFCR. See more <a href="https://docs-cfcr.cfapps.io/">here</a>. To developers, this seems like a regular kubernetes distribution.</p><h3>Competitors</h3><p>You would not compare CFCR with Kubernetes, because CFCR is a Kubernetes distribution. Instead you’d compare it with other Kubernetes distributions such as PKS, EKS, AKS, OpenShift, etc.</p><p>Note that although CFCR introduces HA for the Kubernetes Control plane, note that it depends on BOSH, where the BOSH Director node does not support HA.</p><h3>CFCR vs CFAR: Which Abstraction is Right?</h3><p>According to their <a href="https://www.cloudfoundry.org/why-cloud-foundry/">website</a>, Cloud Foundry Application Runtime is a code-centric platform that takes your code, written in any language or framework, and runs it on any cloud, while Cloud Foundry Container Runtime gives you more granular control and management of containers with Kubernetes.</p><p>This flexibility extends to services as well, thanks to the <a href="https://www.openservicebrokerapi.org/">Open Service Broker API</a>, which makes it easy to integrate the services your apps need to run.</p><h3>Chances of Deprecation</h3><p>CFAR is older, CFCR is newer (and seems to be a response to the rise of Kubernetes). I would not find any evidence on the internet that CFAR will be deprecated. However, CloudFoundry has done a lot of deprecations and rework of their tools (they replaced DEA with Diego, rewrote cf and bosh CLI), therefore this may happen in the future.</p><h3>“Cf push” Developer experience on Kubernetes</h3><p>Some developers may really like the ability to push code into the platform without having to create containers (ie the way Heroku and CFAR) works, but would also like to have a more widely used runtime such as Kubernetes.</p><p>CloudFoundry.org itself has a project called Eirini that should help in this case. This is a very interesting talk about CFAR vs CFCR, what the dev experience is, and various tools that you can use — <a href="https://www.youtube.com/watch?v=dvLCT19I4QY">Kube Your Enthusiasm — Bringing the `CF Push` Experience to Kubernetes Operators (Project Eirini)</a> (32 min)</p><p>Also of interest (in decreasing order of interest):</p><ul><li>Skaffold — <a href="https://github.com/GoogleContainerTools/skaffold">https://github.com/GoogleContainerTools/skaffold</a></li><li>Draft — <a href="https://draft.sh/">https://draft.sh/</a></li><li>GitKube (included in OKD) achieves a similar effect. Thus you can use a higher level of abstraction over Kubernetes to get a “CFAR” like experience. Seems to support source code deployment only. The code itself seems to be compiled or set up by the dockerfile.</li><li>Kubernetes-<a href="https://github.com/helm/helm">Helm</a>, a package manager</li></ul><h3>Takeaways</h3><h3>The Good</h3><ul><li><strong>Better Dev experience</strong>: CF seems to go higher than what K8s provides. It seems to make it very easy to deploy applications in the cloud which may allow us to concentrate on the business logic of our application. This will also facilitate developers to do ops tasks without the need of devops support.</li><li>CF goes very well with technologies we’re familiar with, which is SpringBoot and the microservices framework.</li><li>CF can give us an advantage to run our app in any cloud via BOSH.</li><li>It seems that CF and Kubernetes can co-exist. We can use CF for our stateless app services and use Kubernetes for our persistence (DBs, Search Engines, etc) and compute services. This is a common practice.</li></ul><h3>The Bad</h3><ul><li><strong>Targeted towards stateless apps</strong>: CFAR is targeted towards deploying <a href="https://12factor.net/">12-factor</a> stateless apps. If it is stateful (like ES or MySQL or needs to create files) CFAR calls these “backing services” and recommends that you either use a cloud provided solution (such as AWS RDS) or use a VM to deploy these (you can use BOSH for this, but do configure an external data store so that the data remains). This means that CFAR is not the solution to all your problems, it just makes stateless app deployment simpler. Full fledged container orchestration tools such as CFCR, Swarm, Kubernetes, will let you mount a datastore or force containers to be deployed on specific nodes to ensure that data is backed up. Hashicorp Nomad does the same.</li></ul><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2018/12/07/on-cloud-foundry/"><em>http://devayon.wordpress.com</em></a><em> on December 6, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244e2ea3509f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vagrant with HDP 2.5 Sandbox]]></title>
            <link>https://medium.com/@dev.das/vagrant-with-hdp-2-5-sandbox-8532d20eb6a2?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/8532d20eb6a2</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hortonworks]]></category>
            <category><![CDATA[vagrant]]></category>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Sat, 29 Oct 2016 21:34:24 GMT</pubDate>
            <atom:updated>2020-02-11T23:41:34.885Z</atom:updated>
            <content:encoded><![CDATA[<p>Note: this is an updated version of <a href="https://devayon.wordpress.com/2015/11/11/vagrant-with-hortonworks-sandbox/">this</a> post, and works against the newer HDP sandbox.</p><p>I’ve been experimenting in trying to create a single node Hadoop cluster in order to attempt some Big Data related proof of concepts, as well as some internal projects that I’m tinkering with at work.</p><p>The major Hadoop distributors do supply sandbox or quick start VMs:<br>* Cloudera quickstart VM: <a href="http://www.cloudera.com/content/www/en-us/downloads/quickstart_vms/5-4.html">here</a><br>* Hortonworks Sandbox: <a href="http://hortonworks.com/products/hortonworks-sandbox/">here</a><br>* MapR Sandbox: <a href="https://www.mapr.com/products/mapr-sandbox-hadoop">here</a><br>and so on</p><p>However, instead of manually settinging up the sandboxes and then installing all the dependencies for work, I decided to use Vagrant to set all this up.</p><p>Vagrant itself is a very interesting too for complex deployments — you should <a href="https://www.vagrantup.com/">check it out</a>!</p><p>Anyway, to make these Sandboxes usable in Vagrant, I first need to create a box. It seems that MapR and Hortonworks make thois process very easy. Here are the instructions for Hortonworks (EDIT: I chose HDP because it gave me less issues. If you prefer MapR, you can use this guide.)</p><p>I’m running on Linux, but you could use similar commands on OS X or Windows:</p><ul><li>Install Vagrant</li><li>Install VirtualBox</li><li>Download the HDP Sandbox:</li></ul><p>wget <a href="http://hortonassets.s3.amazonaws.com/2.5/HDP_2.5_virtualbox.ova">http://hortonassets.s3.amazonaws.com/2.5/HDP_2.5_virtualbox.ova</a><br># import the virtual machine<br>VBoxManage import ./HDP_2.5_virtualbox.ova</p><p>If you open VirtualBox GUI, you’ll notice that the VM has been imported.<br>Boot the vm using VirtualBox:<br>VBoxManage startvm &quot;Hortonworks Docker Sandbox&quot;</p><p>The VM does not have a vagrant account, so you can log in as root and create the account<br>ssh root@localhost -p 2222<br>## Password is hadoop</p><p>You will be asked to update the root password. Ideally you should set it to <em>vagrant</em>. Go ahead and create the vagrant user, assigning it to the <em>hadoop</em> and <em>wheel</em> groups<br>useradd vagrant<br>usermod -a -G hadoop vagrant<br>usermod -a -G wheel vagrant</p><p>We’ll tweak the sudoers file and add the wheel group</p><p>visudo</p><p>Now uncomment the following line, save and exit.</p><pre>%wheel  ALL=(ALL)       ALL</pre><p>Login as vagrant</p><pre>su - vagrant</pre><p>Now copy the default vagrant keys so that Vagrant can use them..</p><p>mkdir -p ~/.ssh; cd -p ~/.ssh<br>wget <a href="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant">https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant</a><br>chmod 600 vagrant<br>wget <a href="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub">https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub</a><br>chmod 644 vagrant.pub</p><pre>## shutdown the VM<br>sudo halt</pre><p>Create the vagrant base box</p><p>vagrant package --base &quot;Hortonworks Docker Sandbox&quot;</p><p>The box is now ready — you can put <em>./package.box</em> into a private internal webserver or add it directly to the local vagrant cache:</p><p>vagrant box add HDP-Sandbox-2.5 ./package.box</p><p>You can now create a <em>Vagrantfile</em> if you want to and proceed:</p><p>vagrant init HDP-Sandbox-2.5<br>vagrant up</p><p>Volia!</p><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2016/10/30/vagrant-with-hdp-2-5-sandbox/"><em>http://devayon.wordpress.com</em></a><em> on October 29, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8532d20eb6a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vagrant with Hortonworks Sandbox!]]></title>
            <link>https://medium.com/@dev.das/vagrant-with-hortonworks-sandbox-a71bfd1e25f5?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/a71bfd1e25f5</guid>
            <category><![CDATA[hortonworks-sandbox]]></category>
            <category><![CDATA[vagrant]]></category>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Wed, 11 Nov 2015 05:32:57 GMT</pubDate>
            <atom:updated>2020-03-03T18:21:58.189Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been experimenting in trying to create a single node Hadoop cluster in order to attempt some Big Data related proof of concepts, as well as some internal projects that I’m tinkering with at work.</p><p>The major Hadoop distributors do supply sandbox or quick start VMs:<br>* Cloudera quickstart VM: <a href="http://www.cloudera.com/content/www/en-us/downloads/quickstart_vms/5-4.html">here</a><br>* Hortonworks Sandbox: <a href="http://hortonworks.com/products/hortonworks-sandbox/">here</a><br>* MapR Sandbox: <a href="https://www.mapr.com/products/mapr-sandbox-hadoop">here</a><br>and so on</p><p>However, instead of manually settinging up the sandboxes and then installing all the dependencies for work, I decided to use Vagrant to set all this up.</p><p>Vagrant itself is a very interesting too for complex deployments — you should <a href="https://www.vagrantup.com/">check it out</a>!</p><p>Anyway, to make these Sandboxes usable in Vagrant, I first need to create a box. It seems that MapR and Hortonworks make thois process very easy. Here are the instructions for Hortonworks (EDIT: I chose HDP because it gave me less issues. If you prefer MapR, you can use this guide.)</p><p>I’m running on Linux, but you could use similar commands on OS X or Windows:</p><ul><li>Install Vagrant</li><li>Install VirtualBox</li><li>Download the HDP Sandbox:</li></ul><p>wget <a href="http://d1ozir9xe74yyw.cloudfront.net/2.3.2/HDP_2.3.2_vmare.ova">http://d1ozir9xe74yyw.cloudfront.net/2.3.2/HDP_2.3.2_vmare.ova</a><br>SandboxName=&quot;Hortonworks Sandbox with HDP 2.3&quot;<br># import the virtual machine<br>VBoxManage import ./HDP_2.3.2_vmare.ova</p><p>If you open VirtualBox GUI, you’ll notice that the VM has been imported<br>Boot the vm using VirtualBox:<br>VBoxManage startvm ${SandboxName}</p><p>Hortonwork already has created a vagrant account, so you can log in with user/password of vagrant/vagrant<br>ssh vagrant@localhost -p 2222<br>## Password is vagrant</p><p>Now copy the default vagrant keys so that Vagrant can use them.</p><p>cd ~/.ssh<br>wget <a href="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant">https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant</a><br>chmod 600 vagrant<br>wget <a href="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub">https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub</a><br>chmod 644 vagrant.pub</p><p>## shutdown the VM<br>sudo halt</p><p>Create the vagrant base box</p><p>vagrant package --base &quot;${SandboxName}&quot;</p><p>The box is now ready — you can put ./package.box into a private internal webserver or add it directly to the local vagrant cache:</p><p>vagrant box add HDP-Sandbox ./package.box</p><p>You can now create a Vagrantfile if you want to and proceed</p><p>vagrant init HDP-Sandbox<br>vagrant up</p><p>Volia!</p><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2015/11/11/vagrant-with-hortonworks-sandbox/"><em>http://devayon.wordpress.com</em></a><em> on November 11, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a71bfd1e25f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Open Compute Project]]></title>
            <link>https://medium.com/@dev.das/the-open-compute-project-9950f77b3367?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/9950f77b3367</guid>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Sat, 09 Apr 2011 15:01:44 GMT</pubDate>
            <atom:updated>2020-03-03T18:23:30.986Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve read before that although companies like Oracle have got into the server business by buying Sun, and IBM has sold its PC division to Lenovo just to concentrate on the server market, when it comes to the biggest server user in the world, Google, these companies don’t quite cut it.</p><p>You see google builds its own servers. That’s right, it actually specifies what components are to be on its sever, right down to the actual placement on the motherboard. This makes Google servers faster, cheaper and more energy efficient…. all important factors when considering how many servers Google actually owns.</p><p>The sad bit of all this is that Google doesn’t share its secret sauce. However, recently, with cloud services, you can deploy your web application over their server farms.</p><p>Facebook on the other hand made their platform open source when they went about doing the same thing. That’s what the Open Compute Project is all about.</p><p>O’Reilly has an <a href="http://radar.oreilly.com/2011/04/facebook-open-compute-ops.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+oreilly%2Fradar%2Fatom+%28O%27Reilly+Radar%29">excellent blog post</a> outlining this recent event. Check it out.</p><p><a href="http://opencompute.org/servers/">Also, check out the designs of the OCP.</a></p><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2011/04/09/the-open-compute-project/"><em>http://devayon.wordpress.com</em></a><em> on April 9, 2011.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9950f77b3367" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualizing India Census data through the years with Google PDE]]></title>
            <link>https://medium.com/@dev.das/visualizing-india-census-data-through-the-years-with-google-pde-70ca7343e3bf?source=rss-b2cef6f0db78------2</link>
            <guid isPermaLink="false">https://medium.com/p/70ca7343e3bf</guid>
            <dc:creator><![CDATA[Devayon D]]></dc:creator>
            <pubDate>Tue, 05 Apr 2011 13:58:49 GMT</pubDate>
            <atom:updated>2020-03-03T18:22:21.086Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/383/0*dH1ECKZmGvXDYMxC" /></figure><p>The provisional data of the 2011 Census was out since a week, and I was itching to make some nice visualizations on it. As my facebook friends would notice, I was ranting on about how the <a href="http://censusindia.gov.in/">Census India website</a> does not make the data available in a nice clean manner.</p><p>Anyway, when I talk about cool data visualization, I’m talking about something like<a href="http://plumegraph.org/"> this </a>(beware, need Firefox 4+ or Chrome to view). However, my javascript skills have suffered the last few years and I wanted data access which is a little more “open”.</p><p>My friend Abhinit Tiwari mentioned yesterday that <a href="http://en.wikipedia.org/wiki/Hans_Rosling">Hans Rosling,</a> the old guy with the<a href="http://www.google.co.in/url?sa=t&amp;source=web&amp;cd=3&amp;ved=0CDsQtwIwAg&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhVimVzgtD6w&amp;ei=UhybTc3YE42itgfMwdXcBw&amp;usg=AFQjCNHGhoFds_0rUy93Q4b9GNHJz59RRA"> cool videos</a>, has recently sold his data visualization software to Google, which has incorporated it into the <a href="http://code.google.com/apis/charttools/index.html">Google Visualization API/Chart Tools</a>. While I’d love to apply this to data available on the Census data, these guys wont put it up on an upon format, unlike whats been done by the US at <a href="http://www.data.gov/">http://www.data.gov</a>.</p><p>So the best I could do was hunt down some population data, which I’m putting in the original <a href="https://docs.google.com/viewer?a=v&amp;pid=explorer&amp;chrome=true&amp;srcid=0B6weGrfuWv8gOTdiYmEwYzAtODQwYy00YTE3LWIxYjMtZmQ5ZjRiZWJlYWQx&amp;hl=en&amp;authkey=CKPB-u0N">here </a>and <a href="https://docs.google.com/leaf?id=0B6weGrfuWv8gYzBhZDllMTktYTU1Mi00MWIzLWE5ODctNDM5YzkyY2E0MTU2&amp;hl=en&amp;authkey=CIep6t0F">here</a>, and extract the data, geocode the Indian states and use the <a href="http://www.google.com/publicdata/admin">Google Public Data Explorer</a>, which also uses the <a href="http://code.google.com/apis/charttools/index.html">Google Visualization API</a>. Had to write some XML, but I think you can pull it off.</p><p>So finally, you can see my creation <a href="http://www.google.com/publicdata/explore?ds=z8198gb98lcflf_&amp;ctype=m&amp;strail=false&amp;nselm=s&amp;met_s=population&amp;hl=en&amp;dl=en#ctype=m&amp;strail=false&amp;nselm=s&amp;met_s=population&amp;scale_s=lin&amp;ind_s=false&amp;ccm=uni&amp;ifdim=state&amp;pit=-599616000000&amp;hl=en&amp;dl=en">here</a>. Wonder when the guys at the Indian Census will wake up and do this.</p><p>[Source data [open format] is <a href="https://docs.google.com/leaf?id=0B6weGrfuWv8gZGUyZmE1NmMtYmMyYi00NDQ3LWEwMmEtZTk0MTBmMmU1NjU1&amp;hl=en&amp;authkey=CMLN7OUO">here</a>. Feel free to add more census data and upload. Abhinit, if you are seeing this. maybe you can put this up on Github or something so that we can all contribute and add more data?]</p><p><em>Originally published at </em><a href="https://devayon.wordpress.com/2011/04/05/visualising-india-census-data-through-the-years-with-google-pde/"><em>http://devayon.wordpress.com</em></a><em> on April 5, 2011.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70ca7343e3bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>