You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by 王大忠 <wd...@126.com> on 2022/11/03 08:18:51 UTC

How to send a registration request when the service is stopped

v2.5.0  
 When the program stops the service, HttpClientRegisterRepository will be executed The close() method, where the EventType will be sent DELETED, for the development environment, I don't want to register the local service to shenyu, but I just want to register the test machine to shenyu


Is there any solution to avoid this problem? The previous 2.4.0 is good


Re:Re: How to send a registration request when the service is stopped

Posted by 王大忠 <wd...@126.com>.


It is true that this is the best solution at present, but sometimes it is easy to forget when more people develop. I still thank you very much!














在 2022-11-03 18:41:45,"Yu Xiao" <xi...@apache.org> 写道:
>You can  config this in you local environment:
>
>shenyu
>     register
>        enabled  =  false
>
>
>Best wishes!
>
>Yu Xiao
>Apache ShenYu
>
>王大忠 <wd...@126.com> 于2022年11月3日周四 16:20写道:
>>
>> v2.5.0
>>  When the program stops the service, HttpClientRegisterRepository will be executed The close() method, where the EventType will be sent DELETED, for the development environment, I don't want to register the local service to shenyu, but I just want to register the test machine to shenyu
>>
>>
>> Is there any solution to avoid this problem? The previous 2.4.0 is good
>>

Re: How to send a registration request when the service is stopped

Posted by Yu Xiao <xi...@apache.org>.
You can  config this in you local environment:

shenyu
     register
        enabled  =  false


Best wishes!

Yu Xiao
Apache ShenYu

王大忠 <wd...@126.com> 于2022年11月3日周四 16:20写道:
>
> v2.5.0
>  When the program stops the service, HttpClientRegisterRepository will be executed The close() method, where the EventType will be sent DELETED, for the development environment, I don't want to register the local service to shenyu, but I just want to register the test machine to shenyu
>
>
> Is there any solution to avoid this problem? The previous 2.4.0 is good
>