Git Product home page Git Product logo

Comments (8)

bwangll avatar bwangll commented on September 21, 2024

nacos容器把参数都做了环境变量,他是从环境变量读取参数的。不知道你的修改方式是修改的哪里。可以进入容器执行env看一下变量。建议的方式是通过run的时候传入环境变量或者挂载配置文件的方式优雅处理

from nacos.

bwangll avatar bwangll commented on September 21, 2024

可以分析一下nacos-docker这个项目。了解一下它在容器化的时候做了什么

from nacos.

KomachiSion avatar KomachiSion commented on September 21, 2024

有可能是nacos-client已经获取到新配置并且通知了应用,但是应用不使用新配置;
也有可能是nacos-client已经获取到新配置并且通知了应用,但应用应用新配置时出错导致新配置不被使用。

可以查看下${user.home}/logs/nacos 下的日志,看下有没有信息, 同时排查下应用在使用新配置时的逻辑是否有问题。

from nacos.

noday avatar noday commented on September 21, 2024

我是从界面上修改的配置。
现象我已经描述过了,楼上应该是没看清,我再次描述一遍:界面上修改配置yaml,修改后看日志client收到了变更通知,但通知的配置不是最新的,从数量上可以判断,而且重启应用也拉不到最新的配置(本地缓存的配置我删除了,新建的缓存还是旧配置)
而当我重启nacos容器,拉到的配置就是最新的

from nacos.

noday avatar noday commented on September 21, 2024

刚刚又出现注册的服务网关获取不到的情况,nacos控制台上能看到注册服务,网关日志里服务列表就是空数组init new ips(1) service: DEFAULT_GROUP@@app-system -> []
我已经关闭容器,改用直接启动方式了

from nacos.

noday avatar noday commented on September 21, 2024

目前发现一个影响点是系统时间不对,暂时没时间验证是不是这个问题

from nacos.

KomachiSion avatar KomachiSion commented on September 21, 2024

首先Refresh keys changed 这个日志不是nacos打印的, 应该是你的应用或者应用框架打印的,如果nacos-client的日志(不是应用日志)打印的是已经获取到了新配置,那么就一定是新的配置,因为nacos-client是按照md5值做校验的,md5不一致不会通知lisntner,

另外网关上获取的服务列表是新的问题,建议不要混在一个issue里讨论。

from nacos.

KomachiSion avatar KomachiSion commented on September 21, 2024

No more response from author for a long time, and current information is not enough to judge problem.

from nacos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.