Tietang Wang

Results 7 issues of Tietang Wang

func NotFoundHandler(ctx *routing.Context) error { ctx.WriteString("Not Found:" + strconv.Itoa(http.StatusNotFound)) ctx.Response.SetStatusCode(http.StatusNotFound) return routing.NewHTTPError(http.StatusNotFound) }

## What is the purpose of the change 原来为使用redis scan命令来扫描 /dubbo/com.xxx.yyy.XxxService/*的key 按照https://dubbo.apache.org/zh/docsv2.7/user/references/registry/redis/对redis注册中心的介绍 只有/dubbo/com.xxx.yyy.XxxService/providers 和/dubbo/com.xxx.yyy.XxxService/consumers 2种可能性。 在在使用ClusterRedisClient时,scan命令(参考:org.apache.dubbo.remoting.redis.jedis.ClusterRedisClient.scan)是迭代循环所有cluster node 来扫描每一个node,并合并扫描结果完成的,scan命令本来就很慢,使用ClusterRedisClient时会随着节点越多越慢 我的场景中有6个节点,每次需要5 ~ 20秒的扫描时间,每次启动时很慢且卡在初始化reference阶段;或者泛化每接口第一次调用或者硬编码每接口第一次调用时,都会构建Reference,构建reference时花费了很多时间 如果项目中service 接口很多时,有可能在启动或者重启后会导致worker线程阻塞而请求无法正常调用,目前在测试环境已经遇到了该现象,高并发请求时有可能引起雪奔,特别是存在dubbo http网关时的场景。 经过优化后,该场景在开发环境下从5 ~ 20秒性能提升至300~1000ms,提升5 ~ 20倍,基本上在300 ~...

Can't update global default Settings, I have created a patch. please you check it. Following "settings.go":

- new: ``` var globalSettings = &Settings{ Timeout: time.Duration(DefaultTimeout) * time.Millisecond, MaxConcurrentRequests: DefaultMaxConcurrent, RequestVolumeThreshold: uint64(DefaultVolumeThreshold), SleepWindow: time.Duration(DefaultSleepWindow) * time.Millisecond, ErrorPercentThreshold: DefaultErrorPercentThreshold, } func ConfigureGlobal(config *CommandConfig) { settingsMutex.Lock() defer settingsMutex.Unlock() if...

The system cannot be used when the main body is dark. ![Image](https://github.com/user-attachments/assets/3b094fab-1ad0-431d-8a33-d0100e710f85)