CentaurusInfra / mizar

Mizar – Experimental, High Scale and High Performance Cloud Network https://mizar.readthedocs.io
https://mizar.readthedocs.io
GNU General Public License v2.0
112 stars 50 forks source link

Set more timeout for grpc #585

Closed Hong-Chang closed 2 years ago

Hong-Chang commented 2 years ago

What does this PR do? This pr change cni grpc timeout from 3 sec to 8 sec. The reason is that in mizar/daemon/interface_service.py, function ConsumeInterfaces, there is a while loop which timeout in 5 seconds. So in grpc client it shall expect some cases happens over 5 seconds. Now set grpc timeout to 8 sec.

During arktos-mizar integration, we observed many cases that pod cannot be running. The issue is grpc failed with "rpc error: code = DeadlineExceeded desc = Deadline Exceeded" which is grpc timeout. This pr will fix the issue.

How was this tested? Tested in e2e environment

Are there any user facing / API changes? No.