凭窗观雨 <[email protected]>于2020年1月23日 周四下午7:32写道:
> Thanks a lot for the reply. > > It is great that can get and maintain instance sequence automatically. > Because from DevOps perspective, the instances management tends to be > "stateless" , i.e. to ignore the differences between the individual > intances. > > > > And could you pls tell me the instance management is in which module/class > in source code? I'd like to learn more details about this great > functionality. ServiceInstanceInventory is the register entity. There is a register process for this entity. Also, metadata DAO is related to query. > > > > Thanks & Happy Spring Festival > Patrick > > > > > ------------------ 原始邮件 ------------------ > 发件人: "Sheng Wu"<[email protected]>; > 发送时间: 2020年1月21日(星期二) 晚上11:24 > 收件人: "dev"<[email protected]>; > > 主题: Re: Question about service instance > > > > Reply inline. > > 凭窗观雨 <[email protected]>于2020年1月21日 周二上午10:15写道: > > > Dear Skywalking Dev Team, > > > > > > I have a question about the service instance and did not find answer > in > > docs, so have to email here for your help. > > > > > > Let's take the case in the discussion > > https://github.com/apache/skywalking/issues/3829 as example, does the > > "service instance" stand for the instance on which the service is > deployed > > "physically", or it is a dummy terminology in Skywalking does not > match the > > "physical" instances? > > > In agent case, no matter which language agent. It is the physical instance. > In serivce mesh case, It represents a pod. > > > > > > > > I.e. Does it means the Service A is deployed to 3 VM instances and > Service > > B is deployed to 2 VM instances, or there is NO guarantee of this? > > > > In agent case, They are. > > > > > > If yes, does it require the DevOps team to maintain sequence number > of the > > deployed instances for Skywalking? Or Skywalking can get and maintain > the > > instance sequence itself, no need the extra work for DevOps team? > > > > No, It is automatically. > > > > > > > > Also imagining the Instance 2 of Service A was kicked > > out&nbsp;automatically due to a serious issue, and registered > back again > > after is was fixed. In such case if the sequence is still "Instance > 2", or > > it will be&nbsp;assigned a new sequence like "Instance 4"? > > > In default, It will be instance 4. But you could could set UUID manually, > then it will keep in the same instance which uses this UUID first. In the > next 7.0.0, you even could set instance name in UUID. > > > > > > > > Much appreciate, > > Patrick > > -- > Sheng Wu 吴晟 > > Apache SkyWalking > Apache Incubator > Apache ShardingSphere, ECharts, DolphinScheduler podlings > Zipkin > Twitter, wusheng1108 -- Sheng Wu 吴晟 Apache SkyWalking Apache Incubator Apache ShardingSphere, ECharts, DolphinScheduler podlings Zipkin Twitter, wusheng1108
