当前位置:网站首页>[microservices sentinel] sentinel quick start | building an image | starting the console
[microservices sentinel] sentinel quick start | building an image | starting the console
2022-06-25 00:45:00 【Bulst】
List of articles
brief introduction
Sentinel Distributed oriented 、 Traffic management component of multilingual isomerization service architecture , The main pointcut is traffic , Route from traffic 、 flow control 、 Traffic shaping 、 Fusing the drop 、 System adaptive overload protection 、 Hotspot traffic protection and other dimensions help developers ensure the stability of microservices .
Timeline
2019 year ,Sentinel Explore the direction of multilingual expansion , Introduction C++ Native version , Also aim at Service Mesh The scene also came out Envoy Cluster traffic control support , To solve the problem Service Mesh The problem of multi language flow restriction under the framework .
2021 year ,Sentinel It's heading towards 2.0 Evolution of cloud native high availability decision center components ; At the same time, it launched Sentinel Rust Native version .
2022 year ,Sentinel The brand is upgraded to traffic management , The field covers traffic routing / Dispatch 、 Flow dyeing 、 Flow control degradation 、 Overload protection / Instance removal, etc ; At the same time, the community draws out the relevant standards of flow management to OpenSergo In the standard ,Sentinel Implemented as a traffic governance standard .
Two modules
Sentinel The use of can be divided into two parts :
Console (Dashboard): The console is mainly responsible for managing push rules 、 monitor 、 Cluster current limiting distribution management 、 Machine discovery, etc .
Core library (Java client ): Don't rely on any framework / library , Can run on Java 7 And above , At the same time Dubbo / Spring Cloud And other frameworks also have better support .
Work flow chart

sentinel-dashboard-1.8.1 Mirror image
Dockerfile
FROM java:8
LABEL maintainer="issa <[email protected]>"
ADD sentinel-dashboard-1.8.1.jar app.jar
EXPOSE 80
ENTRYPOINT ["java" ,"-Dserver.port=80","-Dcsp.sentinel.dashboard.server=localhost:80","-Dproject.name=mysentinel","-jar", "app.jar"]
Prerequisite : Need to put sentinel-dashboard-1.8.1.jar Upload to the current directory .
Execute the following command to complete the creation of the image docker build -t mysentinel:1.8.1 .
function docker run -d -p 80:80 mysentinel:1.8.1
Console
Sentinel Provide a lightweight open source console , It provides machine discovery and health management 、 monitor ( Stand alone and cluster ), The function of rule management and push .
Sentinel The console contains the following functions :
Check the list of machines and their health : collect Sentinel Heartbeat packets sent by the client , Used to determine if the machine is online .
monitor ( Single machine and cluster aggregation ): adopt Sentinel Monitoring of client exposure API, Pull and aggregate application monitoring information regularly , Finally, it can realize real-time monitoring in seconds .
Rule management and push : Unified management of push rules .
authentication : Authentication is very important in the production environment . Here, each developer needs to customize according to their own actual situation .
Be careful :Sentinel The console currently only supports stand-alone deployment .Sentinel The console project provides Sentinel
Complete set of functions , Not used as a production environment console out of the box , If you want to use it in the production environment, please customize and transform it according to the documents .
sentinel Console access code
rely on
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
The configuration file :
spring:
cloud:
sentinel:
transport:
dashboard: localhost
# port: 8719
# client-ip: localhost
eager: true
management:
endpoints:
web:
exposure:
include: '*'
Successful startup

边栏推荐
- Paper review: U2 net, u-net composed of u-net
- iNFTnews | 国内NFT发展仅限于数字藏品吗?
- Common redis commands in Linux system
- The acceleration of 100 km is only 5.92 seconds, and the willanda high-performance version leads with the strength of high-energy products
- In the process of enterprise development, I found that a colleague used the select * from where condition for update
- JS dynamically generates variable names and assigns values
- Network request -volley
- 通过kubernetes可视化界面(rancher)安装kibana
- JMeter socket connection sends data
- Solution to network access packet loss of Tencent cloud international ECS
猜你喜欢

VNC viewer remote connection raspberry pie without display

2019 summary and 2020 outlook

无需显示屏的VNC Viewer远程连接树莓派

Wallpaper applet wechat applet

Tiktok wallpaper applet source code
![[leaderboard] Carla leaderboard leaderboard leaderboard operation and participation in hands-on teaching](/img/bd/b176e93ee6fa2125f021bcad3025c2.png)
[leaderboard] Carla leaderboard leaderboard leaderboard operation and participation in hands-on teaching

Single blind box removal, social blind box and friend blind box program source code

Svg+js keyboard control path

Decoupling pages and components using lifecycle

ServerSocket and socket connection
随机推荐
Paint rounded rectangle
The acceleration of 100 km is only 5.92 seconds, and the willanda high-performance version leads with the strength of high-energy products
WordPress add photo album function [advanced custom fields Pro custom fields plug-in series tutorial]
Basic summary of MySQL database knowledge
传输层 以字节为单位的滑动窗口技术
ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
Some examples of MgO operating database in go
Punch smart spirit 1. The brand is attractive. What is the strength of the product?
傳輸層 以字節為單比特的滑動窗口技術
Unmanned driving: Some Thoughts on multi-sensor fusion
What is test development? Can you find a job at this stage?
Tiktok wallpaper applet source code
A small crawler program written by beginners
Previous basic review
[leaderboard] Carla leaderboard leaderboard leaderboard operation and participation in hands-on teaching
Tiktok wallpaper applet v1.0.2 function, new arrival function
Adding, deleting, modifying and checking in low build code
Technologie des fenêtres coulissantes en octets dans la couche de transmission
The drawableleft of the custom textview in kotlin is displayed in the center together with the text
[issue 25] face to face experience of golang Engineer in the rightmost social recruitment