alibaba / alibaba/Sentinel

sentinel-cluster 1.80 Embedded usage issues

Open
#2,331 0 comments 0 reactions 0 assignees View on GitHub
area/cluster-flow area/data-source
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

sentinel-cluster 1.80 Embedded usage
## Issue Description
Sentinel + NACOS cluster current-limiting embedded mode,

The current solution is to implement the InitFunc interface and write the NACOS address and namespace into the code.

Type: feature request

### Describe what happened (or what feature you want)
Is there any other way to read the nocas address in a configuration file like application.yml

Other injection methods have been tried like read properties , resulting in cluster mode flow limiting does not work

### Tell us your environment
jdk:1.8
springboot:2.2.6.RELEASE
sentinel-datasource-nacos: 1.80
spring-cloud-starter-alibaba-sentinel:2.2.5.RELEASE

### Anything else we need to know?

谢谢大佬

Contributor guide

Open the contributing guide

Research direction

Start at the InitFunc implementation and the embedded cluster setup, then inspect how application.yml properties are made available; the issue reports that other property-injection attempts do not make cluster flow limiting work. Done means the Nacos address and namespace can be supplied from application.yml and embedded cluster limiting works under the listed Java 8 and Spring Boot 2.2.6 environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.