What is 1.1 kubernetes?First, it is a new, container-based, distributed architecture leading solution. is an open source version of Google's Borg (large-scale cluster management system).Second, if the system design follows the Kubernetes design idea, then the traditional system architecture and business does not have much to do with the underlying code or function modules (such as load balancing, service se
1, Linux under Consul installationFirst look at this level of information:Uname-aGo to directory, create new Folder Conusl, execute:wget Https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zipExtract:Unzip Consul_0.6.4_linux_amd64.zipGet binary file Consul:Verify, view version:./consul versionsIf you want to execute the
Adding in the configuration fileManagement: Endpoints: Web: exposure: include: "*" endpoint: shutdown: enabled:true Health : show-details:alwaysAnd when you open Consul, you can see the data.Like what: http GET http://10.9.5.4:8240/actuator/health:503 Output: {"status": "Down", " Details ': {' diskspace ': {' status ': ' Up ', ' details ': {' total ': 108131250176, ' free ': 39118278656, ' threshold ': 10485760}} , "db
, reducing the probability of redirection
To avoid this redirection of n-1/n, it is important to know the node where the master queue resides, and then not copy it.IdeasThe general meaning is this picture: 1. Register RABBITMQ in Consul (step 1), RABBITMQ health monitoring through Consul, and consul provide configuration center services, can store some RABB
ObjectiveWith the emergence of micro-services, the management of services is extremely important. All know that microservices are "split", the bloated single-block application, split into a number of lightweight services, each service can be in a short period of time to reconstruct, iterate, delivery. With the increase in the number of micro-services, due to quantitative quality, resulting in a new problem one of which is the management of services. With the growth of micro-services in the busin
Chapter 2 springboot + archaius + consul (Configuration Management) and springbootarchaius
Archaius(Produced by netflix)
Features:
Allows you to Dynamically Retrieve configurations.
The principle is to read the content from the configuration source every 60 s (default, configurable), so that after the configuration file is modified, the modified content can take effect without restarting the service.
Prerequisites:Use the archaius API to re
In the previous article we talked about the concept of consul and how to use it under win: http://www.cnblogs.com/szlblog/p/9162557.htmlThe steps are as follows:1. Installing Virtual machine VMS 2 . Install CentOS 7.4 under Download (address is not provided) This is the installation example: VM virtual machine installation CentOS sample https://www.jb51.net/article/108088.htm3. Configure network environment (ensure network Pass)4. Download and inst
Original link Address: http://luyiisme.github.io/2017/04/22/spring-cloud-service-discovery-products/
Here on the usual use of services found in the product to carry out the comparison of characteristics, first of all to see the conclusion:
Feature
Consul
Zookeeper
Etcd
Euerka
Service Health Check
Service status, memory, hard drive, etc.
(weak) long connection, keepalive
Connect Heartbeat
Ava
In the microservices architecture, each small service is composed of a number of nodes, the addition of nodes to remove the failure to be transparent downstream, it is necessary to introduce a service automatic registration and discovery mechanism, and Consul provides a complete solution, and built-in support for GRPC and HTTP services
Overall architecture
Service Invocation: Client Direct Connect Server call service
Service registration: Th
Consul as a service registration and discovery component of microservices, is a very important partCurrently want to use Consul as the unified management of configuration managementPrepare two machines11.11.11.1011.11.11.20Download Consul Linux version https://www.consul.io/downloads.htmlCreate folders on two machines, respectivelyMkdir/usr/local/
Copy it from here.************************************************************************************************Online to find are both ZK and ETCD comparison, and consul relatively few, this feeling is reliable, also seen in other places on the consul of The Spit Groove, recorded************************************************************************************************LeadIn a distributed micro-serv
This is a creation in
Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/56296013 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys
1, about consul
Consul simplifies the process of registering and discovering services in a distributed environment, which is discover
The health check for a consul instance defaults to "/", which is the default location for useful endpoints in the Spring boot executor application. If you use a non-default context path or a servlet path (for example, Server.servletpath=/foo) or manage the endpoint path (for example, management.context-path=/admin), you need to change these, even for the executor application. You can also configure the interval that
First install the consul environment, referring to the previous article: http://blog.csdn.net/mn960mn/article/details/51753893
Project planning, 2 service-side, 1 clients
First look at the service side,
One: server 1:
Project Dependencies
Note that adding Spring-boot-actuator is for the project to have access to the/health path to determine whether the service is healthy
Package com.pp.consul1;
Import org.springframework.boot.SpringApplication;
1. Define a serviceHttps://www.consul.io/docs/agent/services.htmlThis method is the most common way to provide services in a service registration.About the service definition: properties of the service we will each appear in the back of a summary one, and finally do a summary.2. Service Registration2.1. Create the folder where the service files are storedDescription
. D Suffix: Indicates the directory where a series of configuration files are stored (directory)
2.2. Create a servic
Description: Use the Grafana official plugins (Grafana-kuberneres-app) Link Prometheus show kubernetes informationNote: All monitoring-related information is placed on the Namespace=monitorGithub:https://github.com/grafana/kubernetes-app1, Installation PrometheusProm-rbac.yamlapiVersion: rbac.authorization.k8s.io/v1beta1kind: ClusterRolemetadata: name: prometheus namespace: monitorrules:- apiGroups: [""]
Use Kubernetes to manage containers on centos 71. Preface
The previous section describes the Kubernetes system architecture, which gives you a preliminary understanding of Kubernetes. However, you may not know how to use Kubernetes. This article describes how to deploy and configure the network environment of the
Kubernetes container cluster management system basic explanation, kubernetes Management SystemKubernetes Overview
Kubernetes is open-source by GoogleContainer Cluster Management SystemIs an open-source version of Google's large-scale container management technology Brog, which includes the following features:
Container-based application deployment, maintenance,
Spring.cloud.config.password=37cc5635-559b-4e6f-b633-7e932b813f73(5) Encryption and decryptionWhen using the cryptographic decryption feature, you need to install an unlimited version of JCE in the runtime environment of the configuration center. We can download it from Oracle's official website, which is a compressed package that you can see after extracting the following three files:Readme. TXT Local_policy.jar Us_export_policy.jarThe Local_policy.jar and Us_export_policy.jar two files are th
ClusterCluster is a collection of compute, storage, and network resources, and Kubernetes uses these resources to run various container-based applicationsMasterMaster is the brain of cluster, whose primary responsibility is scheduling, that is, deciding where the application will run. Master runs the Linux operating system, which can be either a physical machine or a virtual machine. To achieve high availability, you can run multiple master.NodeNode's
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.