Nacos 1.1.4 release, the industry's first to support Istio MCP Agreement

Nacos Alibaba open source service discovery and configuration management project, the release of version 1.1.4, is mainly caused by the Istio docking function, using the latest Istio MCP agreement. This article describes the features include this feature, including new versions are released.

Upgrade Guide

Server

0.8.0 and above:

  1. After extracting installation package replaces {nacos.home} /target/nacos-server.jar
  2. One by one to restart Nacos Server

The following version 0.8.0, first upgrade to version 1.0.0.

Client

Replace pom can rely on.

Support Istio MCP Agreement

This is the biggest update this version, primarily to achieve a Nacos service data issued under Istio function, is currently the industry's first all registration centers inside the docking protocol provided by the official version of the MCP. Pilot in the latest design, the use of MCP protocol to interact with all the back-end data sources. The advantage of this is that all the code can be decoupled expansion components, Pilot maintaining lightweight logic in code quality, component stability and scalability are increased dramatically. We can look at the design Pilot Pilot official provided details click here .

 

 

 

 

 

 

 

 

 

 

Figure 1 Pilot latest design concept map

Although the design drawing, Pilot MCP Server back end has been Consul, Eureka, etc., but these projects are currently not officially supported MCP Server. Nacos is the first official protocol support Istio MCP project.

Design on MCP agreement, refer Istio of documents . Nacos achieve MCP Server, currently using a single service number, the full amount of the service push model because the current Pilot does not support data push service increment (after Nacos 1.1.4 release, Pilot has supported endpoint level incremental push , Nacos will support in the next version). Logic implementation is to start a transfer to MCP gRPC Server data, code can reference: https://github.com/alibaba/nacos/tree/develop/istio .

 

 

 

 

 

 

 

 

 

Figure 2 Nacos MCP Server Architecture

Use Nacos MCP Server are as follows:

1. Download the latest Nacos 1.1.4 installation package, extract;

2, the application.properties configuration, and then restart Nacos;

1nacos.istio.mcp.server.enabled=true

Note: If Nacos is clustered deployment, you only need to configure a start MCP Server to Server, because the number of data per Nacos Server are full amount. Meanwhile Nacos MCP Server port 18848 is used, please note that the port is conflict;

3, configure Pilot use Nacos MCP Server:

1configSources
2-- address: x.x.x.x:18848

4, Pilot restart;

Custom ID Examples

In previous versions, the instanceId Instance field type is used as a unique identifier of the instance attribute, its default value is not specified by the client. In the 1.1.4 version, we support that allows clients to customize instanceId generation algorithm ID and a new addition: a unique integer within a service, this integer can be used as an example of a unique index in the services. This feature contributed by vettal-wu, thank you very much.

The use of plastic instanceId is disposed at the instance of registration Metadata, specify the id generation algorithm, the following sample code:

Instance instance = new new 1Instance (); 
2instance.setIp ( "1.1.1.1"); 
3instance.setPort (80); 
4 // must be set ephemeral = false, the server uses to ensure strict coherence protocol, or it may results in the formation of the instance id conflict: 
5instance.setEhpemeral (to false); 
6instance.setMetadata (new new the HashMap <String, String> ()); 
7instance.getMetadata () PUT (PreservedMetadataKeys.INSTANCE_ID_GENERATOR, Constants.SNOWFLAKE_INSTANCE_ID_GENERATOR);.

Nacos In this version there are some optimization on the code quality update, version 1.1.4 issue specific reference list: https://github.com/alibaba/nacos/issues?q=is%3Aissue+milestone%3A1.1.4 .

 

How to build

To achieve this goal, you need to actively participate Nacos community. If you find spelling mistakes, errors are found in the code, or you want new features or want to offer suggestions, you can in a document to create an issues on GitHub .

If you want to start working, you can choose github repository has the following label issues.

 

Nacos thriving community

 

DISS is cheap, show me your hand

Tucao is more important than a hand, with the development of community participation Nacos

 

  • As the user community concerns and join Nacos

 

Nacos community is booming, as of the date issued, Nacos few months have nine micro-channel group, seven full members, a QQ group, a nail group, the number of community concerns Nacos has nearly 5,000 people in Nacos the group with the "Road (base) Friends" learn technology, exchange of experience, recruiting friends, grab grab a red envelope ... enjoying themselves.

 

 

 

 

 

 

 

 

 

  • As the code contributor community to join Nacos

Developers from development Nacos user from contributors logical, and Nacos development team indeed increasingly growing from only four codes contributor to the development began more than 40 current, version 1.1.4, contributions are involved Nacos warehouse : stackisok, loadchange, ly641921791, EZLippi, rushsky518, universefeeler, nkorange, vettal-wu, beldon like.

 

 

 

 

 

 

 

New time - "What is Nacos?"

I do not know what is Nacos? It does not matter, star in it with github program ape brother say hello !!

Nacos  Alibaba in July 2018 a new open-source projects, mainly through vision Nacos is desirable to provide easy to use  动态服务发现, 服务配置管理, 服务共享与管理 infrastructure, help users better way to build native in the cloud era, deliver, manage their own micro-service platform .

More open source projects relating to information Nacos

Next Issue

Nacos next version is 1.2.0 version, the authority will support community-wide attention control function, so stay tuned.

Guess you like

Origin www.oschina.net/news/110951/nacos-1-1-4-released