Back to Meshery

Architecture

docs/static/v0.5/concepts/architecture/index.html

1.0.188.3 KB
Original Source

Architecture

Components, their Purpose, and Languages

Meshery and its components are written using the following languages and technologies.

ComponentsLanguages and Technologies
Meshery ServerGolang, gRPC, GraphQL, SMP
Meshery AdaptersGolang, gRPC, CloudEvents, SMI, OAM
Meshery WASM FiltersRust and C++
Meshery UIReactJS, NextJS, BillboardJS
Meshery Provider UIReactJS, NextJS
Meshery Remote Providersany - must adhere to Meshery Extension Points
Meshery OperatorGolang
MeshSyncGolang
BrokerGolang, NATS
Meshery DatabaseGolang, SQLlite

Deployments

Meshery deploys as a set of containers. Meshery’s containers can be deployed to either Docker or Kubernetes. Meshery components connect to one another via gRPC requests. Meshery Server stores the location of the other components and connects with those components as needed. Typically, a connection from Meshery Server to Meshery Adapters is initiated from a client request (usually either mesheryctl or Meshery UI) to gather information from the Adapter or invoke an Adapter’s operation.

Adapters

In Meshery v0.6.0, Adapters will register with Meshery Server over HTTP POST. If Meshery Server is not available, Meshery Adapters will backoff and retry to connect to Meshery Server perpetually.

Figure: Meshery deploys inside or outside of a Kubernetes cluster

Adapters and Capabilities Registry

Each Meshery Adapter delivers its own unique service mesh-specific functionality. As such, at time of deployment, the Meshery Adapter will register its service mesh-specific capabilities (its operations) with Meshery Server’s capability registry.

Figure: Service Mesh Adapter Operation Registration

Clients

Meshery’s REST API may be consumed by any number of clients. Clients need to present valid JWT token.

Figure: Clients use Meshery’s REST API, GraphQL API, or a combination of both.

Providers

As a point of extension, Meshery supports two types of providers: Local and Remote.

Object Model

This diagram outlines logical constructs within Meshery and their relationships.

Meshery Operator and MeshSync

Meshery Operator is the multi-service mesh operator (a Kubernetes custom controller) that manages MeshSync and it’s messaging broker.

See the Operator section for more information on the function of an operator and MeshSync section for more information on the function of meshsync.

Database

Meshery Server’s database is responsible for collecting and centralizing the state of all elements under management, including infrastructure, application, and Meshery’s own components. Meshery’s database, while persisted to file, is treated as a cache.

See the Database section for more information on the function of the database.

Statefulness in Meshery components

Some components within Meshery’s architecture are concerned with persisting data while others are only concerned with a long-lived configuration, while others have no state at all.

ComponentsPersistenceDescription
mesheryctlstatelesscommand line interface that has a configuration file
Meshery Adaptersstatelessinterface with service meshes on a transactional basis
Meshery Servercaches stateapplication cache is stored in $HOME/.meshery/ folder
Meshery Providersstatefullocation of persistent user preferences, environment, tests and so on
Meshery Operatorstatelessoperator of Meshery custom controllers, notably MeshSync
MeshSyncstatelessKubernetes custom controller, continuously running discovery

Network Ports

Meshery uses the following list of network ports to interface with its various components:

ComponentPortPurpose
Meshery Server9081/tcpUI, REST and GraphQL APIs
Meshery Broker4222/tcpClient communication with Meshery Server
Meshery Broker8222/tcpHTTP management port for monitoring Meshery Broker. Available as of Meshery v0.5.0
Meshery Broker6222/tcpRouting port for Broker clustering. Unused as of Meshery v0.6.0-rc-2
Meshery Broker7422/tcpIncoming/outgoing leaf node connections. Unused as of Meshery v0.6.0-rc-2
Meshery Broker7522/tcpGateway to gateway communication. Unused as of Meshery v0.6.0-rc-2
Meshery Broker7777/tcpused for Prometheus NATS Exporter. Unused as of Meshery v0.6.0-rc-2
Learn Meshery Application10011/tcpSMI conformance testing
Meshery Remote Providers443/tcpe.g. Meshery Cloud
Meshery Adapter for App Mesh10005/gRPCCommunication with Meshery Server
Meshery Adapter for Cilium Service Mesh10012/gRPCCommunication with Meshery Server
Meshery Adapter for Consul10002/gRPCCommunication with Meshery Server
Meshery Adapter for Citrix Service Mesh10008/gRPCCommunication with Meshery Server
Meshery Adapter for Istio10000/gRPCCommunication with Meshery Server
Meshery Adapter for Kuma10007/gRPCCommunication with Meshery Server
Meshery Adapter for Linkerd10001/gRPCCommunication with Meshery Server
Meshery Adapter for NGINX Service Mesh10010/gRPCCommunication with Meshery Server
Meshery Adapter for Network Service Mesh10004/gRPCCommunication with Meshery Server
Meshery Adapter for Open Service Mesh10009/gRPCCommunication with Meshery Server
Meshery Adapter for Tanzu Service Mesh10011/gRPCCommunication with Meshery Server
Meshery Adapter for Traefik Mesh10006/gRPCCommunication with Meshery Server

| Meshery Perf | 10013/gRPC | Performance Management |

See the Adapters section for more information on the function of an adapter.