sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link
cloud-native cncf dubbo javaagent microservice-architecture sermant service-mesh springcloud

A Proxyless Service Mesh Based on Bytecode Enhancement

[简体中文](README-zh.md) | [English](README.md) [![CNCF Landscape](https://img.shields.io/badge/CNCF%20Landscape-5699C6)](https://landscape.cncf.io/?item=orchestration-management--service-mesh--sermant) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![CI/IT Tests](https://github.com/sermant-io/Sermant/workflows/CI/badge.svg?branch=develop)](https://github.com/sermant-io/Sermant/actions?query=workflow:CI:push%20branch:develop) [![codecov](https://codecov.io/gh/sermant-io/Sermant/develop/graph/badge.svg)](https://codecov.io/gh/sermant-io/Sermant)

What is Sermant?

Sermant (also known as Java-mesh) is a proxyless service mesh based on Java bytecode enhancement technology. It utilizes Java bytecode enhancement to provide service governance capabilities to applications, addressing service governance issues in large-scale microservices architectures.

Sermant's vision also includes building a plugin development ecosystem to assist developers in more easily creating service governance functionalities without interfering with the application's source code.

pic

Sermant is a sandbox project of the Cloud Native Computing Foundation (CNCF). Please consider joining the CNCF if you are an organization that wants to take an active role in supporting the growth and evolution of the cloud native ecosystem.

pic

The Sermant architecture is depicted as above. Sermant's JavaAgent has two layers of functions.

Sermant's JavaAgent widely adopts class isolation technology in order to eliminate the class load conflicts between framework code, plugin code, and application code.

A microservice architecture using Sermant has the following three components, which is depicted in the following diagram.

pic

Quick Start

Below is a simple demo that guides new users to use Sermant in just 4 steps.

Preparation

Obtain Demo binary products

Decompress the demo binary product compression package to obtain the spring-provider.jar.

Modify the Sermant configuration

Modify the agent.service.heartbeat.enable and agent.service.gateway.enable configuration in the ${path}/sermant-agent-x.x.x/agent/config/config.properties file to be true, which is to open the heartbeat service and the gateway service of Sermant, as shown below:

agent.service.heartbeat.enable=true
agent.service.gateway.enable=true

Note: path is the path where the Sermant package is downloaded

Start Sermant Backend

Execute the following command in the ${path}/sermant-agent-x.x.x/server/sermant directory:

java -jar sermant-backend-x.x.x.jar

Note: path is the path where the Sermant package is downloaded

Start Demo application

Execute the following command in the directory where the spring-provider.jar file is located:

# linux mac
java -javaagent:${path}/sermant-agent-x.x.x/agent/sermant-agent.jar -jar spring-provider.jar

# windows
java -javaagent:${path}\sermant-agent-x.x.x\agent\sermant-agent.jar -jar spring-provider.jar

Note: path is the path where the Sermant package is downloaded

Verification

Check running status of Sermant. In this example, open the browser and navigate to the URL http://localhost:8900.

pic

License

Sermant adopts Apache 2.0 License.

How to Contribute

Please read Contribute Guide to refer how to join the contribution.

Meeting

Sermant Community Interest Discussion Meeting Minute Book

More Documents to Follow

Sermant website | RoadMap | Membership

Contact Us