You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/23 04:39:12 UTC

[GitHub] [dubbo-go] LaurenceLiZhixin opened a new issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

LaurenceLiZhixin opened a new issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609


   exmaple
   ```yaml
   dubbo:
     registries:
       demoZK:
         protocol:   zookeeper
         address: xxx
     protocols:
       triple:
         name: tri
         port: 20000
     provider:
       services:
         GreeterProvider:
           version: "3.0"
     properties: # add this field
       mysql-address: localhost:3306
       mysql-password: root
       redis-address: localhost:6379
       redis-db: 1
   ```
   
   User can get property like:
   ```go
   addr := config.GetProperty("mysql-address", "defualt-address")
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-992402290


   https://github.com/apache/dubbo-go/pull/1640 has merged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-984271385


   cc @A-Wanderer
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin edited a comment on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin edited a comment on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-976182429


   @AlexStocks  I have placed an incomplete yaml file on the website, which I think we can add here:  https://dubbogo.github.io/zh-cn/docs/user/concept/configuration.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-976182429


   I have placed an incomplete yaml file on the website, which I think we can add here:  https://dubbogo.github.io/zh-cn/docs/user/concept/configuration.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin closed issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin closed issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin edited a comment on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin edited a comment on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-992402290


   https://github.com/apache/dubbo-go/pull/1640 has been merged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-976181675


   good idea. we can add a default dubbogo-v3.yaml for our user. and add comment on every line to let them know what the meaning of its key.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] leapig commented on issue #1609: [Proposal] Should we add user defined configuration in dubbogo.yml for 3.0?

Posted by GitBox <gi...@apache.org>.
leapig commented on issue #1609:
URL: https://github.com/apache/dubbo-go/issues/1609#issuecomment-976216606


   建议有一个公共的全局的业务配置yaml。很多像mysql、redis这些服务的配置信息对于微服务来说基本上是全局共用,当然分库分表读写分离粒度比较细的也有场景。或者业务参数单独放在一个dubbogo-user.yaml对于用户和运维可能更符合真实的使用场景。聊胜与无,相比原来没有扩展字段是一个不错的进步举措


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org