Closed TARS-Question closed 4 years ago
Normally, push is not required. When the service is up, it will automatically pull the configuration. There are APIs to help you pull the configuration.
正常不需要push, 服务起来的时候自动会去拉取配置, 有api帮你拉取配置的。
How to release multiple Servants on one server? Are App.Server.Servant1 and App.Server.Servant2 published in the same service? For example, under TarsDemo.HelloService, a HelloObj provides RPC service, hello, and an executable program. The other directly provides Web services and is another executable program. In Servants management, I added two.
But when it was released, there was only one.
The service file was successfully deployed and uploaded for the first time. The port was mapped on the host machine and the call was successful. An error was reported when adding one more.
一个 Server 多个 Servant 怎么发布?App.Server.Servant1 和 App.Server.Servant2 要发布在同一个服务里面吗?例如在TarsDemo.HelloService 下,一个 HelloObj 提供 RPC 服务,打招呼,一个可执行程序。 另一个直接提供 Web 服务,是另一个可执行程序。在 Servants 管理里,我加成了两个。
但是在发布的时候,只有一个。
第一次顺利部署并上传了服务文件,端口映射出来在宿主机上并且调用成功了,再加一个的时候报错了。
Check the web log error. In fact, it is enough to deploy a service. In the business code, different servants are treated differently. One of them implements the rpc protocol listening port and the other listens to the web port. Deploying the same app and server on the same node will report duplicate errors.
查看web日志错误是什么。实际上这种部署一个服务就行了,在业务代码里边对不同的servant做不同处理,其中一个实现rpc协议监听端口,另一个监听web端口。 在同一个节点上部署相同的app、server,是会报重复错误的 。
I looked at the log, the only constraint failed, I checked the database, and the last deleted thing was not deleted.
翻看了一下日志,唯一约束失败,查看了数据库,上次删除的东西没删掉。
This is the application name, service name, and node. Repeat, you need to deploy before going offline, tars web v2.4.4+ version makes a more clear error prompt (see Figure).
这个就是应用名、服务名、节点,重复了, 需要把之前的下线之后再部署,tars web v2.4.4+版本做更明确的错误提示(见图)
I want to know the difference between the following two folder paths? Both folders are on the node service node 1./usr/local/app/tars/tarsnode/data/Test.test/bin/conf.yaml 2./data/tars/tarsnode-data/Test.test/bin/conf.yaml After I push the configuration file to the service node. When parsing, it prompts that the file cannot be found.