Iron.io and Mesosphere’s strategic partnership enables microservices and serverless computing for modern data centers
Lots of people have been asking about how they can use Mesosphere and Iron.io together. It makes sense, because Iron.io’s workload processing engine and hybrid microservices architecture are perfectly suited to take advantage of Mesosphere’s Datacenter Operating System (DC/OS), the first open and comprehensive platform for building, running and scaling modern enterprise applications.
Iron.io customers already love the simplicity of the serverless Iron.io platform, providing a multi-cloud, Docker-based job-processing service. Using DC/OS with Iron.io, joint customers would see enhanced flexibility to develop their hybrid cloud strategy and run distributed job processing across heterogeneous environments. This would be a big win for enterprise customers who want to pair the scalability and operational ease of DC/OS with the serverless and microservices expertise of Iron.io.
This is why our two companies are working together to create a series of reference architectures for enterprises looking to adopt microservices at scale, for a variety of modern applications and workloads using a containerized infrastructure.
Source: https://mesosphere.com/resources/mesosphere-modern-ent-apps-operations-with-dcos.pdf
Benefit to customers
DC/OS drastically simplifies the process of running applications, including those built around Docker containers and big data systems. It is built on a foundation of Apache Mesos, which works under the covers to aggregate up to tens of thousands of machines into a single resource pool. DC/OS services are highly available, and users can easily deploy and manage distributed services, as well as massive collections of application containers, without configuring servers.
Iron.io provides a hosted service that can deploy workers across public and private cloud environments. These IronWorkers are instantiated in the appropriate target clouds and execute their business logic before being destroyed.
More often than not, IronWorker jobs connect to enterprise big data services and SQL/NoSQL databases. This is where the power of DC/OS can play a key role, by allowing infrastructure developers to build distributed systems that dynamically leverage a range of underlying resources, offering the following key benefits:
- Hybrid Microservices: Both Iron.io and Mesosphere are able to support and run across public, private and hybrid cloud environements. This allows customers of all sizes from startups to large enterprises to deploy “Hybrid Microservices,” allowing flexibility of workload pipelines and back-end data services to be assembled based on performance, security, price and other constraints that customers care about.
- Event-driven resource optimization: As IronMQ queues grow, they can set off triggers that can be used by DC/OS to expand the targeted resources.
- Polyglot languages, meet polyglot databases: The benefits of being polyglot has been widely publicised in cloud-native environments. Combining Iron.io’s support for multiple languages with Mesosphere’s ability to run a variety of big data and analytics platforms provides the greatest flexibility in the industry in a turnkey approach.
- Containers-as-a-Service (CaaS): Specifically for, but not limited to born-in-the-cloud SaaS companies, the evolution of their platforms to microservices can be accelerated through the use of a CaaS environment. Our combined solution provides comprehensive CaaS capabilities.
A high-level overview that shows how Iron.io and Mesosphere DC/OS work together, highlighting some of these benefits can be found below. For more background, you can also check out my recent post on Iron.io hybrid capabilities. HYPERLINK TO: https://www.iron.io/hybrid-iron-io-on-premise-job-processing-with-the-help-of-the-cloud/
Enabling Iron.io IronWorker on Mesosphere
- Sign up for an account at https://hud.iron.io
- Contact sales@iron.io for access to the Hybrid Cluster configuration
- Log into https://hud.iron.io
- Go to My Clusters
- Select create a new cluster
- Select your cluster and keep track of the Cluster ID and Cluster Token as we will need these two items later.
- Log into your DC/OS Cluster
- Select Services
- Click on Marathon
- Select “Open Service”
- In the Marathon UI select “Create new Application”
- You can either do the step by step using the UI or copy and paste the json from https://github.com/douglas-iron/mesosphere/blob/master/ironworker.json in JSON mode.
- In the New Application Dialog give the Application any name
- In Docker Container
- Image: index.docker.io/iron/gorunner (This is the image that will be pulled for the container)
- Network: Any option should work as long as the container can connect outbound to 443 *.iron.io
- Select “extend runtime privileges”
- Select Environment Variables
- Create three Environment Variables
- CLUSTER_ID=CLUSTERID (This is the value from the my clusters page)
- CLUSTER_TOKEN=CLUSTERTOKEN (This is the value from the my clusters page)
- Create three Environment Variables
- ENV=PRODUCTION
- Select Health Checks
- We’ll be creating 3 health checks
- Healthcheck 1
- COMMAND: ps -Aef | grep -q ./runner
- Grace Period: 300
- Interval: 60
- Timeout: 20
- Max Consecutive Failures: 3
- Healthcheck 2
- COMMAND: ps -Aef | grep -q dockerd
- Grace Period: 60
- Interval: 60
- Timeout: 20
- Max Consecutive Failures: 3
- Healthcheck 3
- COMMAND: docker ps -a
- Grace Period: 300
- Interval: 60
- Timeout: 20
- Max Consecutive Failures: 3
- Select Optional
- On your mesosphere nodes you will need to do “docker login” and login with the user who has access to the iron.io IronWorker Docker image. Once you have done that you will need to gzip the .docker folder with the config.json and make sure it is available on all of the nodes.
- Put the tar.gz file on each node where it is accessible toDC/OS
- In URIs put the path to the file like: file:///etc/docker.tar.gz
- Select “Create Application”
- You can now click scale to have instances created
Summary
We are truly excited about this partnership and the potential it holds for turnkey “hybrid microservices” deployments. I’m looking forward to seeing how customers innovate around our combined platforms. Please share your comments and feedback below about your use cases, additional areas we should focus on, or anything else really. And stay tuned for a lot more from this partnership in the near future.