Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加通过远程获取配置文件的能力 #16

Closed
duantihua opened this issue May 4, 2022 · 0 comments
Closed

增加通过远程获取配置文件的能力 #16

duantihua opened this issue May 4, 2022 · 0 comments
Milestone

Comments

@duantihua
Copy link
Member

duantihua commented May 4, 2022

多群集部署的复杂度,引起server.xml维护困难

Sas的server.xml文件是系统的核心配置文件,在部署多台主机时,需要每个机器运行各自的服务。
实践过程中,往往处于方便直接进行了修改,例如升级当前主机运行的应用的版本号等等。
长时间维护看来,这样不利于整体控制,容易出现失控的现象。比如在增加机器,进行扩容,或者应用搬家进行再分配的情况,
这样不得不更改多个主机的server.xml文件。这样的方式不利于整体排查,还容易带来疏漏和错误。

全局单一server.xml

如果全局有个server.xml放在固定的网址中,每次需要更新的时候运行一个更新命令,服务器根据自己的IP运行所对应的webapp,
这样只需要维护单一的server.xml即可,省时省力。比如使用如下命令进行更新

bin/sas.sh pull

事先将远程server.xml网址放在bin/setenv.sh文件中,该文件是用户自定义文件,每次sas版本更新时,会保护该文件。

@duantihua duantihua added this to the 0.10.0 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant