华为servicecomb java_ServiceComb:华为开源的微服务框架

Apache ServiceComb Service-Center是一个基于RESTful的服务注册中心,提供微服务发现和管理功能。支持服务发现、容错、动态路由、订阅通知,并设计为可扩展。具有高性能缓存和独立的微服务及实例管理。内置度量和跟踪支持,还提供Web门户进行微服务管理。
摘要由CSDN通过智能技术生成

Apache-ServiceComb-Service-Center

68747470733a2f2f7777772e7472617669732d63692e6f72672f6170616368652f73657276696365636f6d622d736572766963652d63656e7465722e7376673f6272616e63683d6d617374657268747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6170616368652f73657276696365636f6d622d736572766963652d63656e7465722f62616467652e7376673f6272616e63683d6d617374657268747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f6170616368652f73657276696365636f6d622d736572766963652d63656e74657268747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f6170616368652f73657276696365636f6d622d736572766963652d63656e7465723f7374617475732e737667687474703a2f2f686974732e6477796c2e696f2f6170616368652f73657276696365636f6d622d736572766963652d63656e7465722e73766768747470733a2f2f696d672e736869656c64732e696f2f62616467652f53657276696365436f6d622d4769747465722d6666363962342e737667

Apache ServiceComb Service-Center is a Restful based service-registry that provides micro-services discovery and micro-service management. It is based on Open API format and provides features like service-discovery, fault-tolerance, dynamic routing, notify subscription and scalable by design. It has high performance cache design and separate entity management for micro-services and their instances. It provides out of box support for metrics and tracing. It has a web portal to manage the micro-services.

Features

Metadata: Metadata management for both microservice and microservice instance

Dependency: Microservice dependency management

Separated: Separated microservice and microservice instance entity management

Domains: Logical multiple domains management

Security: White and black list configuration for service discovery

Discovery: Support query instance by criteria

Subscribe: Use web socket to notify client about instance change events

Fault tolerance: Multiple fault tolerance mechanism and design in the architecture

Performance: Performance/Caching design

Documentation

Project documentation is available on the ServiceComb website. You can also find full document here.

Quick Start

Getting Service Center

The easiest way to get Service Center is to use one of the pre-built release binaries which are available for Linux, Windows and Docker.

Running Service Center using the Release

You can download our latest release from ServiceComb Website.When you get these release, you can execute the start script to run Service Center.

Windows(apache-servicecomb-service-center-XXX-windows-amd64.zip):

start-service-center.bat

Linux(apache-servicecomb-service-center-XXXX-linux-amd64.tar.gz):

./start-service-center.sh

Docker:

docker pull servicecomb/service-center

docker run -d -p 30100:30100 servicecomb/service-center

Note: The Releases of Service-Center uses emebeded etcd, if you want to use the seperate instance of etcd then you can deploy the etcd seperately and configure the etcd ip over here.

vi conf/app.conf

## Edit this file

# registry address

# 1. if registry_plugin equals to 'embeded_etcd'

# manager_name = "sc-0"

# manager_addr = "http://127.0.0.1:2380"

# manager_cluster = "sc-0=http://127.0.0.1:2380"

# 2. if registry_plugin equals to 'etcd'

# manager_cluster = "127.0.0.1:2379"

manager_cluster = "127.0.0.1:2379"

By default the SC comes up on 127.0.0.1:30100, however you can change the configuration of these address over here.

vi conf/app.conf

httpaddr = 127.0.0.1

httpport = 30100

Building & Running Service-Center from source

Requirements

Go version 1.8+ is required to build the latest version of Service-Center.

Download the Code

git clone https://github.com/apache/servicecomb-service-center.git $GOPATH/src/github.com/apache/servicecomb-service-center

cd $GOPATH/src/github.com/apache/servicecomb-service-center

Dependencies

you can download dependencies directly using command go mod. Please follow below steps to download all the dependency.

# greater then go1.11

GO111MODULE=on go mod download

GO111MODULE=on go mod vendor

Build the Service-Center

go build -o service-center

First, you need to run a etcd(version: 3.x) as a database service and then modify the etcd IP and port in the Service Center configuration file (./etc/conf/app.conf : manager_cluster).

wget https://github.com/coreos/etcd/releases/download/v3.1.8/etcd-v3.1.8-linux-amd64.tar.gz

tar -xvf etcd-v3.1.8-linux-amd64.tar.gz

cd etcd-v3.1.8-linux-amd64

./etcd

cd $GOPATH/src/github.com/apache/servicecomb-service-center

cp -r ./etc/conf .

./service-center

This will bring up Service Center listening on ip/port 127.0.0.1:30100 for service communication.If you want to change the listening ip/port, you can modify it in the Service Center configuration file (./conf/app.conf : httpaddr,httpport).

Running Frontend using the Release

You can download our latest release from ServiceComb Website and then untar it and run start-frontend.sh/start-frontend.bat. This will bring up the Service-Center UI on http://127.0.0.1:30103.

Windows(apache-servicecomb-service-center-XXX-windows-amd64.zip):

start-frontend.bat

Linux(apache-servicecomb-service-center-XXXX-linux-amd64.tar.gz):

./start-frontend.sh

Note: By default frontend runs on 127.0.0.1, if you want to change this then you can change it in conf/app.conf.

frontend_host_ip=127.0.0.1

frontend_host_port=30103

You can follow the guide over here to run the Frontend from source.

Get The Latest Release

Contact

Contributing

See Contribution guide for details on submitting patches and the contribution workflow.

Reporting Issues

See reporting bugs for details about reporting any issues.

License

Licensed under an Apache 2.0 license.

Export Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The Apache Software Foundation has classified this software as Export Commodity Control Number (ECCN) 5D002, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the "publicly available" Section 742.15(b) exemption (see the BIS Export Administration Regulations, Section 742.15(b)) for both object code and source code.

The following provides more details on the included cryptographic software:

The transport between server and client can be configured to use TLS

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值