Description
This paper introduces a service discovery and configuration sharing software, briefly introduces the principle and use of consul, a small text, hoping to attract interested children's shoes together to explore research. What's consul?
Consul is a service software that supports distributed and highly available service discovery and configuration sharing in multiple data centers, developed by Hashicorp company in Go language, and is open so
implementation.If you organize different gangs into a unified whole, Spring Cloud cluster has provided you with a lot of handy tools for organizing.Spring Cloud ConsulConsul is a service software that supports distributed, highly available service discovery and configuration sharing in multiple datacenters, developed by Hashicorp in the Go language, and open source based on the Mozilla Public License 2.0 protocol. Consul supports health checks and al
, which -template is the template used by the specified consul templates, the new file address generated, and the command to execute after the new file is generated.Continue with our caseNow we add a new Sitec, IP 127.0.0.1:94, Sitec only index.html and HEALTHCHECK.HTML2 filesA. Create 2.TPL, the file content is as follows, here is the template syntax of consul-template (corresponding syntax can be seen https://github.com/hashicorp/consul-template)eve
manage, configure and automatically install the virtual machine.
Second, installation
1, install the virtual machine software Virtaulbox or VM (recommended with
Virtaulbox), and then install Vagrant Software. Here are the graphical interface installation, directly attached to the software's current address Virtualbox,vagrant2, install the Homestead box in the Windows console to execute the following command:
vagrant box add laravel/homestead
This co
Consul is a service software that supports distributed, highly available service discovery and configuration sharing in multiple datacenters, developed by Hashicorp in the Go language, and open source based on the Mozilla Public License 2.0 protocol. Consul supports health checks and allows the HTTP and DNS protocol call APIs to store key-value pairs. Details:Https://www.consul.io/docs/internals/architecture.html, the frame composition is as follows:C
running for ever. When the machine fails, Aurora intelligently re-plans these jobs to a healthy machine.VagrantVagrant is a ruby-based tool for creating and deploying virtualized development environments. It uses Oracle's Open source VirtualBox virtualization system to create automated virtual environments using chef.PackerPacker is an open source tool for creating the same machine image from a single configuration source for multiple platforms. The platforms currently supported include Amazon
localenv package and unzip it.B. Install vagrant and virtual Box from the Localenv/software directory in the unpacking packageC. Add the installation path of the dependent package to the executable path.1) Click Start, right-click Computer in the pop-up menu, and select Properties from the drop-down menu to open the System Properties dialog box.2) Click Advanced System Settings in the right panel to open the Advanced System Settings dialog box.3) Click Environment Variables at the bottom right
Download-Vagrant by HashiCorp
Download centos image
A list of base boxes for Vagrant
Just install or something.
After installation, add the centos image to the terminal.
Assume that the Directory of the box you downloaded is ~ /Centos. box
Enter $ vagrant box add centos65 ~ /Centos65.box
Centos65 After add is the name of your named box
Show success
Show success
Initialize the development environment
Create a development Directory (fo
, it still needs to be managed manually, but future terraform will join these support.
Q: are each VPC group fully independent of service delivery? Can you say what aspect of the business layer this technology is dealing with?
A: Each VPC group provides a complete application feature implementation, which also improves the prd-sg-master,prd-sg-slave that we can use for disaster tolerance. The business layer provides primarily HTTP services and internally dependent MicroServices.
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 discovered through HTTP or DNS interfaces.There are a lot of useful functions.The conformance prot
is used to describe a data structure that exists in the following form.
Object: An object to { begin with, and to } end. An object contains a series of non-sorted name/value pairs, using partitions between each name/value pair ,
Name/value (collection): Used between names and values : , the general form is:{name:value}
Sequential list of values (Array): One or more values are used, and after partitioning, they are used to [,] form such lists
Strings: A string of characters enclos
Today using vagrant, code synchronization: Vagrant Rsync-auto found that the code synchronization is invalid, a few restarts after the discovery of an error:A bit puzzled, because the 1h also synchronized with the modified code, now suddenly error, the current still unknown reason (this 1h has not done any coding settings/modifications of the operation, still weird, left to the great God Research Bar ~) The following direct focusreasons for the error :Vagrant Source code using Ruby implementatio
management tool, Hashicorp, and for the community, his resignation left chef's face bare. Vargo did not elaborate on his concerns and declined to comment on the matter. Chef Nathen Harvey, an open source community director, says that chef has developed a community-based guidelines similar to the code of conduct that outlines the acceptable behavior that companies expect from the open source community, and Vargo The event brought the company back up t
implementation.If you organize different gangs into a unified whole, Spring Cloud cluster has provided you with a lot of handy tools for organizing.Spring Cloud ConsulConsul is a service software that supports distributed, highly available service discovery and configuration sharing in multiple datacenters, developed by Hashicorp in the Go language, and open source based on the Mozilla Public License 2.0 protocol. Consul supports health checks and al
First, Consul basic introductionConsul is an open source tool launched by Hashicorp to implement service discovery and configuration for distributed systems. Compared with other distributed service registration and discovery schemes, such as Airbnb's Smartstack, Consul's solution is more "one-stop", with built-in service registration and discovery Framework, distributed consistency Protocol implementation, health check, Key/value storage, multi-data c
A brief introduction of distributed service registration and Discovery ConsulConsul is an open source tool launched by Hashicorp company to realize the service discovery and configuration of distributed system. With other distributed services registration and Discovery Program, Consul's scheme is more "one-stop", built-in service registration and discovery Framework, distributed consistency Protocol implementation, health check, Key/value storage, mul
solutionWorkaroundSet vagrant dir-sync: mount_options = [' actimeo=2 ']. The modifications are completed as followsConfig.vm.synced_folder "/users/vincent/code/", "/home/www",: NFS = True,: mount_options = [' actimeo=2 ']Why is there such a problem?This involves some remote knowledge, I do not particularly understand. But the general reason I know, because Mac upgraded to high Sierra after the use of APFS (Apple file system). This can cause synchronization problems.Then why add actimeo=2 can so
)}log.Printf("%d * %d = %d", args.A, args.B, reply.C)}
Consul
Consul is an open source tool launched by Hashicorp to implement service discovery and configuration for distributed systems. The consul is distributed, highly available, and horizontally scalable. It has the following features:
Service Discovery: Consul provides a way to register services and discovery services through DNS or HTTP interfaces. Some external services can easily find t
GO Scheduler is to allocate multiple OS threads so that they can use goroutine smoothly when running on one or more processors. In the process of multi-threaded operation, work sharing and work stealing often occur simultaneously. Starting with Go 1.1, Golang core developer Dmitry Vyukov has uploaded a scheduler for go work-stealing algorithms. This paper will further explain the principle of go work-stealing algorithm scheduler, and how to implement the function of scheduler with Go language.
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.