`dubbo.protocol.name=tri` is enough

On Thu, Oct 31, 2024 at 10:37 AM tanmay modak <tanmaymoda...@gmail.com>
wrote:

> In my current config, I am using *dubbo.protocol.name
> <http://dubbo.protocol.name>=dubbo* and *dubbo.protocol.ext-protocol=tri*.
> My detailed config is below (in italics).
>
>
>
>
>
>
>
>
>
>
> *dubbo:  application:      name: dubbo-springboot-demo-provider
> qos-enable: false  protocol:    name: dubbo    port: 20880    ext-protocol:
> tri  registry:    address:
> nacos://<nacos-uuid>.nacos.<nacos-domain>:8848?username=nacos&password=nacos*
>
> Should I be setting both *dubbo.protocol.name
> <http://dubbo.protocol.name>=tri* and *dubbo.protocol.ext-protocol=tri* ?
> Are both fields (dubbo.protocol.name and dubbo.protocol.extr-protocol)
> needed, or is one of them enough if we set it to tri ?
>
> On Wed, Oct 30, 2024 at 9:41 PM Albumen Kevin <jhq0...@gmail.com> wrote:
>
>> Have you tried with `dubbo.protocol.name=tri` already? I will try with
>> `ext-protocol=tri` later.
>>
>> On Thu, Oct 31, 2024 at 6:57 AM tanmay modak <tanmaymoda...@gmail.com>
>> wrote:
>>
>>> Hello
>>>
>>> I am currently trying to start a dubbo-provider springboot service on
>>> *http*
>>> protocol on port 20880. However, the startup logs indicate that
>>> this service is not actually being started on the http protocol, but
>>> instead on the dubbo protocol.
>>>
>>> For reference, I am following the instructions provided by this guide by
>>> Alibaba
>>> <
>>> https://www.alibabacloud.com/blog/high-performance-and-user-friendly-http-access-with-dubbo3_601460
>>> >
>>> under
>>> the section *Access Methods for Different RPC Protocols -> Dubbo Protocol
>>> Access Method -> Support for Both HTTP and Dubbo Protocols*
>>>
>>> Listed below are the steps that I am following:
>>>
>>> 1. *Clone the dubbo samples <https://github.com/apache/dubbo-samples>
>>> repo
>>> and use the project 1-basic/dubbo-samples-springboot
>>> <
>>> https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-spring-boot
>>> >.
>>> *Add the below section to the *application.yml* file.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *dubbo:  application:      name: dubbo-springboot-demo-provider
>>> qos-enable: false  protocol:    name: dubbo    port: 20880
>>> ext-protocol:
>>> tri  registry:    address:
>>>
>>> nacos://<nacos-uuid>.nacos.<nacos-domain>:8848?username=nacos&password=nacos*
>>>
>>> *2. Build the jar and then the docker image, and deploy to the kubernetes
>>> cluster.*
>>>
>>> *Observations in **Startup Logs*
>>> In the startup logs (i*n italics below) *the url *dubbo://
>>> 172.22.0.18:20880/org
>>> <http://172.22.0.18:20880/org>* indicates that the service has still
>>> started on the dubbo protocol and NOT the http protocol.
>>>
>>> *[DUBBO] Register dubbo service
>>> org.apache.dubbo.springboot.demo.DemoService url
>>> dubbo://172.22.0.18:20880/org
>>> <http://172.22.0.18:20880/org
>>> >.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=172.22.0.18&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&executor-management-mode=isolation&ext.protocol=tri&file-cache=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&ispuserver=true&methods=sayHello&pid=1&prefer.serialization=hessian2,fastjson2&qos.enable=false&release=3.3.1&revision=1.0-SNAPSHOT&service-name-mapping=true&side=provider&timestamp=1730177244898
>>> to registry <nacos-registry-uid>.nacos.<rest-of-domain>:8848, dubbo
>>> version: 3.3.1, current host: 172.22.0.18*
>>>
>>> Per my understanding, setting *ext-protocol *and *qos-enable *should be
>>> enough to start the service on http. Is there any additional
>>> configuration
>>> or code change that is needed ?
>>> --
>>> Best
>>> Tanmay
>>>
>>
>
> --
> Best
> Tanmay
>

Reply via email to