You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/10/19 02:01:48 UTC

[GitHub] [apisix] jagerzhang opened a new issue #5277: request help: Can strict mode be supported and cannot be started when there is an error in configuration

jagerzhang opened a new issue #5277:
URL: https://github.com/apache/apisix/issues/5277


   ### Issue description
   
   昨天我们这边因为配置文件中的discovery缩进错误,导致eureka服务发现不可用,所有基于eureka的服务全部503,但是APISIX是正常启动且没有报错日志。
   ![image](https://user-images.githubusercontent.com/9711651/137830993-60fd14af-1c15-402c-be51-465d76cde611.png)
   
   想问下有没有可能支持配置下严格模式,当检测配置有误的时候则阻止启动,比如这个场景下,APISIX能否获悉配置了eureka服务发现的上游,而配置文件里面却没有discovery配置,此时应该报错并阻止启动。
   
   因为在K8S里面部署,新的pod无法启动就不会影响现网。
   
   以上,不知道有没有比较好的解决办法。
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.10.0
   - OS (cmd: `uname -a`): centos-docker


-- 
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@apisix.apache.org

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



[GitHub] [apisix] spacewander commented on issue #5277: request help: Can strict mode be supported and cannot be started when there is an error in configuration

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5277:
URL: https://github.com/apache/apisix/issues/5277#issuecomment-946307130


   Look like we need to move the discovery's schema check to https://github.com/apache/apisix/blob/ae08d23d9730141d88caca49ceb97073946e56fd/apisix/cli/ops.lua#L149


-- 
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@apisix.apache.org

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



[GitHub] [apisix] spacewander closed issue #5277: request help: Can strict mode be supported and cannot be started when there is an error in configuration

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5277:
URL: https://github.com/apache/apisix/issues/5277


   


-- 
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@apisix.apache.org

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