Norbert  Ernser

Norbert Ernser

1595345760

Getting Started With Consul Service Discovery

Consul is a tool for discovering and configuring services in your infrastructure. It provides several key features like service discovery, health checking, KV store and multi datacenter support.

Consul is designed to be friendly to both the DevOps community and application developers, making it perfect for modern, elastic infrastructures.

Install Consul & Build Servers

First lets create four servers and install apache on three of them or any other services since we will do a service check in this article.

Let’s say we have the four servers as follow:

  • Server Name is consul-01 and has a public IP 111.111.111.111
  • Server Name is consul-02 and has a public IP 222.222.222.222
  • Server Name is consul-03 and has a public IP 333.333.333.333
  • Server Name is consul-04 and has a public IP 444.444.444.444

Now we need to install consul on all these servers:

apt-get update
apt-get install unzip
cd /usr/local/bin
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip
unzip *.zip
rm *.zip

Feel free to use the appropriate consul version, Here we use 1.0.2. Also consul use some ports so you need to open these ports or you can configure these ports but this out of the scope of this part right now. For now let’s just open them and later we will talk about why these ports needed and how to configure:

sudo ufw allow 8300
sudo ufw allow 8301
sudo ufw allow 8302
sudo ufw allow 8400
sudo ufw allow 8500
sudo ufw allow 8600

Once you finihed, you can call consul command and get a help stuff:

$ consul
Usage: consul [--version] [--help] <command> [<args>]

Available commands are:
    agent          Runs a Consul agent
    catalog        Interact with the catalog

#linux #microservices #scaling #consul #health-checking #kv-support #microservices #service-discovery

What is GEEK

Buddha Community

Getting Started With Consul Service Discovery
Norbert  Ernser

Norbert Ernser

1595345760

Getting Started With Consul Service Discovery

Consul is a tool for discovering and configuring services in your infrastructure. It provides several key features like service discovery, health checking, KV store and multi datacenter support.

Consul is designed to be friendly to both the DevOps community and application developers, making it perfect for modern, elastic infrastructures.

Install Consul & Build Servers

First lets create four servers and install apache on three of them or any other services since we will do a service check in this article.

Let’s say we have the four servers as follow:

  • Server Name is consul-01 and has a public IP 111.111.111.111
  • Server Name is consul-02 and has a public IP 222.222.222.222
  • Server Name is consul-03 and has a public IP 333.333.333.333
  • Server Name is consul-04 and has a public IP 444.444.444.444

Now we need to install consul on all these servers:

apt-get update
apt-get install unzip
cd /usr/local/bin
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip
unzip *.zip
rm *.zip

Feel free to use the appropriate consul version, Here we use 1.0.2. Also consul use some ports so you need to open these ports or you can configure these ports but this out of the scope of this part right now. For now let’s just open them and later we will talk about why these ports needed and how to configure:

sudo ufw allow 8300
sudo ufw allow 8301
sudo ufw allow 8302
sudo ufw allow 8400
sudo ufw allow 8500
sudo ufw allow 8600

Once you finihed, you can call consul command and get a help stuff:

$ consul
Usage: consul [--version] [--help] <command> [<args>]

Available commands are:
    agent          Runs a Consul agent
    catalog        Interact with the catalog

#linux #microservices #scaling #consul #health-checking #kv-support #microservices #service-discovery

Camron  Shields

Camron Shields

1595314860

Leveraging Consul's DNS Interface

Application builds when broken down into multiple smaller service components, are known as microservices. When compared to the traditional Monolithic way, a Microservice Architecture treats each microservice as a standalone entity/module, essentially helping to ease the maintenance of its code and related infrastructure. Each microservice of an application can be written in a different technology stack, and further be deployed, optimized and managed independently.

Though in theory, a Microservice Architecture specifically benefits build of complex large-scale applications, however, it is also widely used for small-scale application builds (for example, a simple shopping cart) - with an eye to scale further.

Benefits of a Microservice Architecture

  • Individual microservices within an application can be developed and deployed through different technology stacks.
  • Each microservice can be optimized, deployed or scaled independently.
  • Better fault handling and error detection.

Benefits of a Microservice Architecture

  • Individual microservices within an application can be developed and deployed through different technology stacks.
  • Each microservice can be optimized, deployed or scaled independently.
  • Better fault handling and error detection.

Components of a Microservice Architecture

A modern cloud-native application running on Microservice Architecture relies on the following critical components:

  • Containerization (through platforms like Docker) - for effective management and deployment of services by breaking them into multiple processes.
  • Orchestration (through platforms like Kubernetes) - for configuration, assignment and management of available system resources to services.
  • Service Mesh (through platforms like Istio) - for inter-service communication through a mesh of service- proxies to connect, manage and secure microservices.

#scaling #service discovery #consul #microservices #service-discovery

Lia  Haley

Lia Haley

1598803020

Building a Service Mesh with Consul

Load balancers aren’t efficient in a dynamic environment where we scale services up or down. Consul uses a registry to keep a real-time list of services, their location, and their health. Services query the registry to discover the location of upstream services and then connect directly. This allows services to scale up/down and gracefully handle failure

Installation

To Install Consul on Ubuntu

apt-get update
cd /usr/local/bin
wget https://releases.hashicorp.com/consul/1.2.2/consul_1.2.2_linux_amd64.zip
wget https://releases.hashicorp.com/consul/1.2.2/consul_1.2.2_SHA256SUMS
sha256sum consul_1.2.2_linux_amd64.zip
grep "consul_1.2.2_linux_amd64.zip" consul_1.2.2_SHA256SUMS
rm consul_1.2.2_SHA256SUMS
unzip *.zip
rm *.zip

## Refer to https://www.consul.io/docs/agent/options.html#ports for required ports and optional
ufw allow 8300
ufw allow 8301
ufw allow 8302
ufw allow 8400
ufw allow 8500
ufw allow 8600

mkdir /tmp/consul_services
mkdir /tmp/consul

Run Consul for Development

Create a system service for consul nano /etc/systemd/system/consul.service

[Unit]
Description=Consul
Documentation=https://www.consul.io/

[Service]
ExecStart=/usr/local/bin/consul agent -dev -ui -client $CLIENT_SERVER_IP_HOST
ExecReload=/bin/kill -HUP $MAINPID
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

Then

systemctl daemon-reload
systemctl start consul.service

#scaling #service discovery #consul #amazon web services

Make Your Business Popular On the Internet with search engine optimization services India

As a small business owner, you should never think that SEO services are not for you. The search engine optimization services India from this digital marketing agency offer SEO services for small businesses and enterprises to make sure that they get in competition with bigger websites. They deliver on-page, off-page, local SEO and ecommerce SEO services.

#search engine optimization services india #seo services india #affordable seo services india #seo services provider #website seo services #outsource seo services india

Top-Notch 3d Design Services | 3d Printing Prototype Service

3D Design Service Provider

With the advancement in technology, many products have found a dire need to showcase their product virtually and to make the virtual experience as clear as actual a technology called 3D is used. The 3D technology allows a business to showcase their products in 3 dimensions virtually.

Want to develop an app that showcases anything in 3D?

WebClues Infotech with its expertise in mobile app development can seamlessly connect a technology that has the capability to change an industry with its integration in the mobile app. After successfully serving more than 950 projects WebClues Infotech is prepared with its highly skilled development team to serve you.

Want to know more about our 3D design app development?

Visit us at
https://www.webcluesinfotech.com/3d-design-services/

Visit: https://www.webcluesinfotech.com/3d-design-services/

Share your requirements https://www.webcluesinfotech.com/contact-us/

View Portfolio https://www.webcluesinfotech.com/portfolio/

#3d design service provide #3d design services #3d modeling design services #professional 3d design services #industrial & 3d product design services #3d web design & development company