The mec platform for service register/discovery/subscribe and other functions.roject main repo.

Overview

EdgeGallery MEP project

License

Introduction

Edgegallery MEP is an open source implementation of MEC platform according to ETSI MEC 003 [1] and 011 [2] documentation.

The MEC platform, as defined in ETSI GS MEC 003, offers an environment where MEC applications may discover, advertise, consume and offer MEC services. Upon receipt of update, activation or deactivation of traffic rules from the MEC platform manager, applications or services, the MEC platform instructs the data plane accordingly. The MEC platform also receives DNS records from the MEC platform manager and uses them to configure a DNS proxy/server.

Via Mp1 reference point between the MEC platform and the MEC applications, as defined in ETSI GS MEC 011, the basic functions are enabled, such as:

  • MEC service assistance:
    • authentication and authorization of producing and consuming MEC services;
    • a means for service producing MEC applications to register/deregister towards the MEC platform the MEC services they provide, and to update the MEC platform about changes of the MEC service availability;
    • a means to notify the changes of the MEC service availability to the relevant MEC application;
    • discovery of available MEC services;
  • MEC application assistance:
    • MEC application availability subscription;
    • MEC application termination subscription;

MEP architecture

MEP Mp1 service registry and discovery bases on servicecomb service center [3]. Servicecomb service center is a Restful based service-registry that provides micro-services discovery and micro-service management. MEP utilize its registry abilities and plugin mechanism to implement Mp1 interfaces. The mep-server module is the core implementations of MEP server for Mp1 APIs. The APIs is provided for MEC Apps to register or discover services in MEC platform.

MEP code directory

├── kong-plugin
│   ├── appid-header
│   └── kong.conf
├── mepauth
├── mepserver
└── README.md

Above is the directory tree of MEP project, their usage is as belows:

  • kong-plugin: mep api gateway kong plugin
  • mepserver: mep server implementation
  • mepauth: mepauth module provide token apply api for Apps

MEP build & run

Most of the MEP project codes are developed by golang, the kong plugin is by lua. MEP project is released via docker image.

Build mep-auth

cd mepauth
sudo ./docker-build.sh

Build mep-server

cd mepserver
sudo ./docker-build.sh

Run mepauth

docker run -itd --name mepauth \
             --cap-drop All \
             --network mep-net \
             --link kong-service:kong-service \
             -v ${MEP_CERTS_DIR}/jwt_publickey:${MEPAUTH_KEYS_DIR}/jwt_publickey:ro \
             -v ${MEP_CERTS_DIR}/jwt_encrypted_privatekey:${MEPAUTH_KEYS_DIR}/jwt_encrypted_privatekey:ro \
             -v ${MEP_CERTS_DIR}/mepserver_tls.crt:${MEPAUTH_SSL_DIR}/server.crt:ro \
             -v ${MEP_CERTS_DIR}/mepserver_tls.key:${MEPAUTH_SSL_DIR}/server.key:ro \
             -v ${MEP_CERTS_DIR}/ca.crt:${MEPAUTH_SSL_DIR}/ca.crt:ro \
             -v ${MEPAUTH_CONF_PATH}:/usr/mep/mprop/mepauth.properties \
             -e "MEPAUTH_APIGW_HOST=kong-service" \
             -e "MEPAUTH_APIGW_PORT=8444"  \
             -e "MEPAUTH_CERT_DOMAIN_NAME=${DOMAIN_NAME}" \
             -e "MEPSERVER_HOST=mepserver" \
             edgegallery/mepauth:latest

MEP_CERTS_DIR is where you put mepauth server certificates and keys. MEPAUTH_CONF_PATH is a config file for mepauth.

Run mepserver

MEP_CERTS_DIR is where you put mep server certificates and keys. MEP_ROOT_KEY_COMPONENT is the root key's random component of length 256. CERT_PASSPHRASE is the passphrase used to create the certificate.

docker run -itd --name mepserver --network mep-net -e "SSL_ROOT=${MEPSERVER_SSL_DIR}" \
                                 --cap-drop All \
                                 -v ${MEP_CERTS_DIR}/mepserver_tls.crt:${MEPSERVER_SSL_DIR}/server.cer:ro \
                                 -v ${MEP_CERTS_DIR}/mepserver_encryptedtls.key:${MEPSERVER_SSL_DIR}/server_key.pem:ro \
                                 -v ${MEP_CERTS_DIR}/ca.crt:${MEPSERVER_SSL_DIR}/trust.cer:ro \
                                 -v ${MEP_CERTS_DIR}/mepserver_cert_pwd:${MEPSERVER_SSL_DIR}/cert_pwd:ro \
                                 -e "ROOT_KEY=${MEP_ROOT_KEY_COMPONENT}" \
                                 -e "TLS_KEY=${CERT_PASSPHRASE}" \
                                 edgegallery/mep:latest

More details about the building and installation of MEP, please refer to HERE.

Reference

[1] https://www.etsi.org/deliver/etsi_gs/MEC/001_099/003/02.01.01_60/gs_MEC003v020101p.pdf

[2] https://www.etsi.org/deliver/etsi_gs/MEC/001_099/011/02.01.01_60/gs_MEC011v020101p.pdf

[3] https://github.com/apache/servicecomb-service-center

You might also like...
crud is a cobra based CLI utility which helps in scaffolding a simple go based micro-service along with build scripts, api documentation, micro-service documentation and k8s deployment manifests

crud crud is a CLI utility which helps in scaffolding a simple go based micro-service along with build scripts, api documentation, micro-service docum

Sysctl.conf and other system tunings for Linux

PATCHFILES I came to the idea to create patchfiles, when I saw lots of config files people create. Patchfiles implements various config scripts into o

Bitrise step to parse a JaCoCo generated report and output the code coverage percentages to be used by other steps.

JaCoCo Report Parser This step parses a JaCoCo generated XML report in the jacoco_report_path and outputs the coverage percentages in a String format

A standalone exporter for vulnerability reports and other CRs created by Starboard.

starboard-exporter Exposes Prometheus metrics from Starboard's VulnerabilityReport custom resources (CRs). Metrics This exporter exposes two types of

Natural-deploy - A natural and simple way to deploy workloads or anything on other machines.

Natural Deploy Its Go way of doing Ansibles: Motivation: Have you ever felt when using ansible or any declarative type of program that is used for dep

A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool.

ytdlwatch A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool. Ideal for

This repo contains example on how to consume secrets from Google Secret Manager from GKE

GKE Secret Manager. Environment setup This repo contains examples of how to consume secrets from Google Secret Manager (GSM) from Google Kubernetes En

This repo contains the metadata of EdgeX snaps

edgex-snap-metadata This repo contains the metadata of EdgeX snaps along with utility scripts to generate dummy snaps that can used to update the meta

This repo includes several winrm applications like transfering files, running commands.
This repo includes several winrm applications like transfering files, running commands.

WinRM Tools This repo includes several WinRM tools written with Go: File transfering between two Powershell session. Running command on remote Powersh

Comments
  • mepserver and mepauth containers exiting after start-up

    mepserver and mepauth containers exiting after start-up

    After successfully deploying postgres container, running kong migration and deploying kong service container, both mepauth and mepserver containers exit and an error related to "Elasticsearch node" is raised. I followed this repository readme and the documentation at gitee repository.

    Could you provide some insight on the origin of these failures ?

    Thanks in advance for any help or advice.

    Logs :

    2021-11-08T08:42:35.626Z INFO backend/discovery.go:150 install new type 0:SERVICE->/cse-sr/ms/files/ 2021-11-08T08:42:35.631Z INFO backend/discovery.go:150 install new type 1:INSTANCE->/cse-sr/inst/files/ 2021-11-08T08:42:35.631Z INFO backend/discovery.go:150 install new type 2:DOMAIN->/cse-sr/domains/ 2021-11-08T08:42:35.631Z INFO backend/discovery.go:150 install new type 3:SCHEMA->/cse-sr/ms/schemas/ 2021-11-08T08:42:35.631Z INFO backend/discovery.go:150 install new type 4:SCHEMA_SUMMARY->/cse-sr/ms/schema-sum/ 2021-11-08T08:42:35.631Z INFO backend/discovery.go:150 install new type 5:RULE->/cse-sr/ms/rules/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 6:LEASE->/cse-sr/inst/leases/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 7:SERVICE_INDEX->/cse-sr/ms/indexes/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 8:SERVICE_ALIAS->/cse-sr/ms/alias/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 9:SERVICE_TAG->/cse-sr/ms/tags/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 10:RULE_INDEX->/cse-sr/ms/rule-indexes/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 11:DEPENDENCY_RULE->/cse-sr/ms/dep-rules/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 12:DEPENDENCY_QUEUE->/cse-sr/ms/dep-queue/ 2021-11-08T08:42:35.632Z INFO backend/discovery.go:150 install new type 13:PROJECT->/cse-sr/projects/ 2021-11-08T08:42:35.643Z INFO plugin/plugin.go:67 load 'cipher' plugin named 'mepserver_tls' 2021-11-08T08:42:35.645Z INFO rest/route.go:107 register servant controller/v4.MainService 2021-11-08T08:42:35.646Z INFO rest/route.go:133 register route /v4/:project/registry/version(GET) 2021-11-08T08:42:35.646Z INFO rest/route.go:133 register route /v4/:project/registry/health(GET) 2021-11-08T08:42:35.646Z INFO rest/route.go:107 register servant controller/v4.MicroServiceService 2021-11-08T08:42:35.646Z INFO rest/route.go:133 register route /v4/:project/registry/existence(GET) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices(GET) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId(GET) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices(POST) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/properties(PUT) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId(DELETE) 2021-11-08T08:42:35.647Z INFO rest/route.go:133 register route /v4/:project/registry/microservices(DELETE) 2021-11-08T08:42:35.648Z INFO rest/route.go:107 register servant controller/v4.SchemaService 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/schemas/:schemaId(GET) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/schemas/:schemaId(PUT) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/schemas/:schemaId(DELETE) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/schemas(POST) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/schemas(GET) 2021-11-08T08:42:35.648Z INFO rest/route.go:107 register servant controller/v4.DependencyService 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/dependencies(POST) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/dependencies(PUT) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:consumerId/providers(GET) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:providerId/consumers(GET) 2021-11-08T08:42:35.648Z INFO rest/route.go:107 register servant controller/v4.TagService 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/tags(POST) 2021-11-08T08:42:35.648Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/tags/:key(PUT) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/tags(GET) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/tags/:key(DELETE) 2021-11-08T08:42:35.649Z INFO rest/route.go:107 register servant controller/v4.RuleService 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/rules(POST) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/rules(GET) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/rules/:rule_id(PUT) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/rules/:rule_id(DELETE) 2021-11-08T08:42:35.649Z INFO rest/route.go:107 register servant controller/v4.MicroServiceInstanceService 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/instances(GET) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/instances/action(POST) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances(GET) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances/:instanceId(GET) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances(POST) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances/:instanceId(DELETE) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances/:instanceId/properties(PUT) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances/:instanceId/status(PUT) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/instances/:instanceId/heartbeat(PUT) 2021-11-08T08:42:35.649Z INFO rest/route.go:133 register route /v4/:project/registry/heartbeats(PUT) 2021-11-08T08:42:35.650Z INFO rest/route.go:107 register servant controller/v4.WatchService 2021-11-08T08:42:35.650Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/watcher(GET) 2021-11-08T08:42:35.650Z INFO rest/route.go:133 register route /v4/:project/registry/microservices/:serviceId/listwatcher(GET) 2021-11-08T08:42:35.653Z INFO dns/rest.go:65 New DNS agent initialization. 2021-11-08T08:42:35.653Z INFO mp1/controller.go:97 Data plane initialized to none. 2021-11-08T08:42:35.654Z INFO rest/route.go:107 register servant mepserver/mp1.Mp1Service 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/subscriptions(POST) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/subscriptions(GET) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/subscriptions/:subscriptionId(GET) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/subscriptions/:subscriptionId(DELETE) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services(POST) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services(GET) 2021-11-08T08:42:35.654Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services/:serviceId(PUT) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services/:serviceId(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services/:serviceId(DELETE) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/subscriptions(POST) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/subscriptions(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/subscriptions/:subscriptionId(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/subscriptions/:subscriptionId(DELETE) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/dns_rules(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/dns_rules/:dnsRuleId(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/dns_rules/:dnsRuleId(PUT) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services/:serviceId/liveness(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/applications/:appInstanceId/services/:serviceId/liveness(PUT) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /health(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/services(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/services/:serviceId(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/traffic_rules(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/traffic_rules/:trafficRuleId(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/traffic_rules/:trafficRuleId(PUT) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/timing/current_time(GET) 2021-11-08T08:42:35.655Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/timing/timing_caps(GET) 2021-11-08T08:42:35.656Z INFO rest/route.go:133 register route /mep/mec_service_mgmt/v1/transports(GET) 2021-11-08T08:42:35.656Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/confirm_ready(POST) 2021-11-08T08:42:35.656Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/confirm_termination(POST) 2021-11-08T08:42:35.660Z INFO plugin/plugin.go:67 load 'quota' plugin named 'buildin' 2021-11-08T08:42:35.660Z INFO discovery/event_proxy.go:71 register event handler[SERVICE_INDEX] quota/counter.ServiceIndexEventHandler 2021-11-08T08:42:35.660Z INFO discovery/event_proxy.go:71 register event handler[INSTANCE] quota/counter.InstanceEventHandler 2021-11-08T08:42:35.663Z ERROR util/requestutil.go:63 Validate server name error. 2021-11-08T08:42:35.663Z INFO plugin/plugin.go:67 load 'quota' plugin named 'buildin' 2021-11-08T08:42:35.663Z INFO discovery/event_proxy.go:71 register event handler[INSTANCE] mp1/event.InstanceEtsiEventHandler 2021-11-08T08:42:35.667Z INFO plans/kong_http_log.go:70 Create es client.

    2021-11-08T08:42:40.681Z ERROR plans/kong_http_log.go:73 Connect to es fail. {"error": "health check timeout: Head "http://mep-elasticsearch:9200": proxyconnect tcp: dial tcp: lookup xxx.xxx.xx: device or resource busy: no Elasticsearch node available"} 2021-11-08T08:42:40.682Z INFO dns/rest.go:65 New DNS agent initialization. 2021-11-08T08:42:40.682Z INFO mm5/controller.go:82 Data-plane initialized to none. 2021-11-08T08:42:40.682Z ERROR util/meputil.go:794 Invalid mep-auth port. 2021-11-08T08:42:40.682Z ERROR mm5/controller.go:46 Mm5 interface initialization failed. {"error": "port validation error"} 2021-11-08T08:42:40.683Z INFO rest/route.go:107 register servant mepserver/mm5.Mm5Service 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/app_lcm/v1/applications/:appInstanceId/appd_configuration(POST) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/app_lcm/v1/applications/:appInstanceId/appd_configuration(PUT) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/app_lcm/v1/applications/:appInstanceId/appd_configuration(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/app_lcm/v1/applications/:appInstanceId/appd_configuration(DELETE) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/app_lcm/v1/tasks/:taskId/appd_configuration(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/mec_platform_config/v1/capabilities(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mepcfg/mec_platform_config/v1/capabilities/:capabilityId(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mep/mec_app_support/v1/applications/:appInstanceId/AppInstanceTermination(DELETE) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mep/service_govern/v1/kong_log(POST) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mep/service_govern/v1/kong_log(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mep/service_govern/v1/subscribe_statistic(GET) 2021-11-08T08:42:40.683Z INFO rest/route.go:133 register route /mep/service_govern/v1/services(GET) 2021-11-08T08:42:40.683Z INFO plugin/plugin.go:67 load 'uuid' plugin named 'buildin' 2021-11-08T08:42:40.683Z INFO plugin/plugin.go:67 load 'uuid' plugin named 'mp1context' 2021-11-08T08:42:40.685Z INFO rest/server_mux.go:57 register serve mux 'default' http handler github.com/apache/servicecomb-service-center/server/rest/ServerHandler, pattern / 2021-11-08T08:42:40.689Z INFO rest/server_mux.go:57 register serve mux 'default' http handler net/http/HandlerFunc, pattern /metrics 2021-11-08T08:42:40.689Z INFO metric/reporter.go:35 register metrics reporter 'rest' 2021-11-08T08:42:40.691Z ERROR registry/config.go:107 auto_sync_interval is invalid {"error": "time: invalid duration "} 2021-11-08T08:42:40.697Z INFO discovery/event_proxy.go:71 register event handler[DOMAIN] service/event.DomainEventHandler 2021-11-08T08:42:40.697Z INFO discovery/event_proxy.go:71 register event handler[SERVICE] service/event.ServiceEventHandler 2021-11-08T08:42:40.697Z INFO discovery/event_proxy.go:71 register event handler[INSTANCE] service/event.InstanceEventHandler 2021-11-08T08:42:40.697Z INFO discovery/event_proxy.go:71 register event handler[RULE] service/event.RuleEventHandler 2021-11-08T08:42:40.697Z INFO discovery/event_proxy.go:71 register event handler[SERVICE_TAG] service/event.TagEventHandler 2021-11-08T08:42:40.698Z INFO discovery/event_proxy.go:71 register event handler[DEPENDENCY_QUEUE] service/event.DependencyEventHandler 2021-11-08T08:42:40.698Z INFO discovery/event_proxy.go:71 register event handler[DEPENDENCY_RULE] service/event.DependencyRuleEventHandler 2021-11-08T08:42:40.698Z INFO discovery/event_proxy.go:71 register event handler[SCHEMA_SUMMARY] service/event.SchemaSummaryEventHandler 2021-11-08T08:42:40.699Z INFO rest/route.go:107 register servant controller/v3.MainService 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /version(GET) 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /health(GET) 2021-11-08T08:42:40.699Z INFO rest/route.go:107 register servant controller/v3.MicroServiceService 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /registry/v3/existence(GET) 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /registry/v3/microservices(GET) 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId(GET) 2021-11-08T08:42:40.699Z INFO rest/route.go:133 register route /registry/v3/microservices(POST) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/properties(PUT) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId(DELETE) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices(DELETE) 2021-11-08T08:42:40.700Z INFO rest/route.go:107 register servant controller/v3.SchemaService 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/schemas/:schemaId(GET) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/schemas/:schemaId(PUT) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/schemas/:schemaId(DELETE) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/schemas(POST) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/schemas(GET) 2021-11-08T08:42:40.700Z INFO rest/route.go:107 register servant controller/v3.DependencyService 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/dependencies(POST) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/dependencies(PUT) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:consumerId/providers(GET) 2021-11-08T08:42:40.700Z INFO rest/route.go:133 register route /registry/v3/microservices/:providerId/consumers(GET) 2021-11-08T08:42:40.701Z INFO rest/route.go:107 register servant controller/v3.TagService 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/tags(POST) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/tags/:key(PUT) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/tags(GET) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/tags/:key(DELETE) 2021-11-08T08:42:40.701Z INFO rest/route.go:107 register servant controller/v3.RuleService 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/rules(POST) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/rules(GET) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/rules/:rule_id(PUT) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/rules/:rule_id(DELETE) 2021-11-08T08:42:40.701Z INFO rest/route.go:107 register servant controller/v3.MicroServiceInstanceService 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/instances(GET) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances(GET) 2021-11-08T08:42:40.701Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances/:instanceId(GET) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances(POST) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances/:instanceId(DELETE) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances/:instanceId/properties(PUT) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances/:instanceId/status(PUT) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/instances/:instanceId/heartbeat(PUT) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/heartbeats(PUT) 2021-11-08T08:42:40.702Z INFO rest/route.go:107 register servant controller/v3.WatchService 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/watcher(GET) 2021-11-08T08:42:40.702Z INFO rest/route.go:133 register route /registry/v3/microservices/:serviceId/listwatcher(GET) 2021-11-08T08:42:40.702Z INFO plugin/plugin.go:67 load 'registry' plugin named 'buildin' 2021-11-08T08:42:40.706Z INFO plugin/plugin.go:67 load 'registry' plugin named 'etcd' 2021-11-08T08:42:40.723Z INFO plugin/plugin.go:67 load 'registry' plugin named 'embeded_etcd' 2021-11-08T08:42:40.723Z INFO plugin/plugin.go:67 load 'discovery' plugin named 'aggregate' 2021-11-08T08:42:40.723Z INFO plugin/plugin.go:67 load 'discovery' plugin named 'servicecenter' 2021-11-08T08:42:40.723Z INFO plugin/plugin.go:67 load 'discovery' plugin named 'buildin' 2021-11-08T08:42:40.723Z INFO plugin/plugin.go:67 load 'discovery' plugin named 'etcd' 2021-11-08T08:42:40.742Z INFO plugin/plugin.go:67 load 'discovery' plugin named 'k8s' 2021-11-08T08:42:40.742Z INFO plugin/plugin.go:67 load 'cipher' plugin named 'buildin' 2021-11-08T08:42:40.742Z INFO plugin/plugin.go:67 load 'quota' plugin named 'unlimit' 2021-11-08T08:42:40.742Z INFO plugin/plugin.go:67 load 'auth' plugin named 'buildin' 2021-11-08T08:42:40.742Z INFO plugin/plugin.go:67 load 'uuid' plugin named 'context' 2021-11-08T08:42:40.743Z INFO plugin/plugin.go:67 load 'trace' plugin named 'buildin' 2021-11-08T08:42:40.743Z INFO plugin/plugin.go:67 load 'ssl' plugin named 'buildin' 2021-11-08T08:42:40.743Z INFO rest/route.go:107 register servant server/govern.GovernServiceControllerV3 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /registry/v3/govern/service/:serviceId(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /registry/v3/govern/relation(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /registry/v3/govern/services(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:107 register servant server/govern.GovernServiceControllerV4 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /v4/:project/govern/microservices/:serviceId(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /v4/:project/govern/relations(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /v4/:project/govern/microservices(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /v4/:project/govern/apps(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:107 register servant server/broker.BrokerController 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /pacts/provider/:providerId/consumer/:consumerId/version/:number(PUT) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /pacts/provider/:providerId/latest(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /pacts/provider/:providerId/consumer/:consumerId/version/:number(GET) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /pacts/delete(DELETE) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /pacts/provider/:providerId/consumer/:consumerId/pact-version/:sha/verification-results(POST) 2021-11-08T08:42:40.744Z INFO rest/route.go:133 register route /verification-results/consumer/:consumerId/version/:consumerVersion/latest(GET) 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 14:PARTICIPANT->/cse-pact/participant/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 15:VERSION->/cse-pact/version/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 16:PACT->/cse-pact/pact/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 17:PACT_VERSION->/cse-pact/pact-version/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 18:PACT_TAG->/cse-pact/pact-tag/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 19:VERIFICATION->/cse-pact/verification/ 2021-11-08T08:42:40.744Z INFO backend/discovery.go:150 install new type 20:PACT_LATEST->/cse-pact/latest/ 2021-11-08T08:42:40.745Z INFO rest/route.go:107 register servant server/admin.AdminServiceControllerV4 2021-11-08T08:42:40.745Z INFO rest/route.go:133 register route /v4/:project/admin/alarms(GET) 2021-11-08T08:42:40.745Z INFO rest/route.go:133 register route /v4/:project/admin/alarms(DELETE) 2021-11-08T08:42:40.745Z INFO rest/route.go:133 register route /v4/:project/admin/dump(GET) 2021-11-08T08:42:40.745Z INFO rest/route.go:133 register route /v4/:project/admin/clusters(GET) 2021-11-08T08:42:40.745Z INFO bootstrap/bootstrap.go:80 BootStrap ServiceComb.io Edition 2021-11-08T08:42:40.745Z INFO interceptor/interceptors.go:51 Intercept interceptor/access.Intercept 2021-11-08T08:42:40.745Z INFO interceptor/interceptors.go:51 Intercept interceptor/cors.Intercept 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/maxbody.MaxBodyHandler 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/metric.MetricsHandler 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/tracing.TracingHandler 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/auth.AuthRequest 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/context.ContextHandler 2021-11-08T08:42:40.745Z INFO chain/handler.go:41 register chain handler[_server_chain] handler/cache.CacheResponse 2021-11-08T08:42:40.745Z INFO core/config.go:128 service center is running simultaneously with 4 CPU cores

    opened by bastien-internship 2
  • mep container exited

    mep container exited

    After deploying postgreps and kong according to the document, some error occurred after runing the mep:latest container and then it automatically exited, log is as follows:

    2021-09-17 08:22:18.201818 I | embed: listening for peers on http://127.0.0.1:2380 2021-09-17 08:22:18.204501 I | etcdserver: name = sc-0 2021-09-17 08:22:18.204509 I | etcdserver: data dir = data 2021-09-17 08:22:18.204514 I | etcdserver: member dir = data/member 2021-09-17 08:22:18.204531 I | etcdserver: heartbeat = 100ms 2021-09-17 08:22:18.204534 I | etcdserver: election = 1000ms 2021-09-17 08:22:18.204538 I | etcdserver: snapshot count = 100000 2021-09-17 08:22:18.204543 I | etcdserver: advertise client URLs = 2021-09-17 08:22:18.204547 I | etcdserver: initial advertise peer URLs = http://127.0.0.1:2380 2021-09-17 08:22:18.204554 I | etcdserver: initial cluster = sc-0=http://127.0.0.1:2380 2021-09-17 08:22:18.208920 I | etcdserver: starting member b71f75320dc06a6c in cluster 1c45a069f3a1d796 2021-09-17 08:22:18.208954 I | raft: b71f75320dc06a6c became follower at term 0 2021-09-17 08:22:18.208961 I | raft: newRaft b71f75320dc06a6c [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0] 2021-09-17 08:22:18.208965 I | raft: b71f75320dc06a6c became follower at term 1 2021-09-17 08:22:18.215083 W | auth: simple token is not cryptographically signed 2021-09-17 08:22:18.219103 I | etcdserver: starting server... [version: 3.3.13, cluster version: to_be_decided] 2021-09-17 08:22:18.219243 I | etcdserver: b71f75320dc06a6c as single-node; fast-forwarding 9 ticks (election ticks 10) 2021-09-17 08:22:18.219489 I | etcdserver/membership: added member b71f75320dc06a6c [http://127.0.0.1:2380] to cluster 1c45a069f3a1d796 2021-09-17 08:22:18.909233 I | raft: b71f75320dc06a6c is starting a new election at term 1 2021-09-17 08:22:18.909362 I | raft: b71f75320dc06a6c became candidate at term 2 2021-09-17 08:22:18.909385 I | raft: b71f75320dc06a6c received MsgVoteResp from b71f75320dc06a6c at term 2 2021-09-17 08:22:18.909407 I | raft: b71f75320dc06a6c became leader at term 2 2021-09-17 08:22:18.909418 I | raft: raft.node: b71f75320dc06a6c elected leader b71f75320dc06a6c at term 2 2021-09-17 08:22:18.909583 I | etcdserver: setting up the initial cluster version to 3.3 2021-09-17 08:22:18.910364 N | etcdserver/membership: set the initial cluster version to 3.3 2021-09-17 08:22:18.910439 I | etcdserver/api: enabled capabilities for version 3.3 2021-09-17 08:22:18.910483 I | etcdserver: published {Name:sc-0 ClientURLs:[]} to cluster 1c45a069f3a1d796 2021-09-17 08:22:18.929874 I | etcdserver: skipped leadership transfer for single member cluster

    opened by Enyokid 1
Owner
EdgeGallery
EdgeGallery: Open Multi-Access Edge Computing Platform
EdgeGallery
Service Discovery and Governance Center for Distributed and Microservice Architecture

Polaris: Service Discovery and Governance English | 简体中文 README: Introduction Components Getting started Chat group Contribution Visit website to lear

Polarismesh 1.6k Sep 23, 2022
Polaris is a cloud-native service discovery and governance center

It can be used to solve the problem of service connection, fault tolerance, traffic control and secure in distributed and microservice architecture.

PolarisMesh 1.6k Sep 27, 2022
Service registry/discovery implementation in Go.

go-service-registry Availabe endpoints : GET http://localhost:3000/ --> Dashboard GET http://localhost:3000/services/[serviceName] --> Get available

null 1 Feb 11, 2022
NFGateway main project repository

NFGateway NFGateway is the main module of the Network Function over Serverless System (NFoS System). The NFoS System is the result of the M.S. Thesis

null 0 Nov 28, 2021
kitex running in kubernetes cluster and discover each other in kubernetes Service way

Using kitex in kubernetes Kitex [kaɪt'eks] is a high-performance and strong-extensibility Golang RPC framework. This go module helps you to build mult

adolli 1 Feb 21, 2022
A dynamic docker->redis->traefik discovery agent

traefik-kop A dynamic docker->redis->traefik discovery agent. Solves the problem of running a non-Swarm/Kubernetes multi-host cluster with a single pu

jitter.dev 31 Sep 13, 2022
This repo houses some Golang introductory files, sample codes and implementations

This repo houses some Golang introductory files, sample codes and implementations. I will be updating it as I keep getting a hang of the language.

Uchenna Emeruche 3 Aug 27, 2022
Trusted Certificate Service for Kubernetes Platform

Trusted Certificate Service (TCS) is a Kubernetes (k8s) service to protect private keys using Intel's SGX technology including support for k8s CSR and cert-manager CR APIs. TCS also contains integration samples for Istio service mesh and Key Management Reference Application (KMRA).

Intel Corporation 17 Aug 29, 2022
Open Service Mesh (OSM) is a lightweight, extensible, cloud native service mesh that allows users to uniformly manage, secure, and get out-of-the-box observability features for highly dynamic microservice environments.

Open Service Mesh (OSM) Open Service Mesh (OSM) is a lightweight, extensible, Cloud Native service mesh that allows users to uniformly manage, secure,

Open Service Mesh 2.5k Sep 19, 2022
Cheiron is a Kubernetes Operator made with OperatorSDK for reconciling service account and attaching imagePullSecrets to service accounts automatically

anny-co/cheiron NOTE: Cheiron is currently in very early stages of development and and far from anything usable. Feel free to contribute if you want t

anny 2 Sep 13, 2021