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 2020/10/22 06:25:55 UTC

[GitHub] [apisix] ShiningRush commented on a change in pull request #2153: feat(CLI): worker and cpu optimization

ShiningRush commented on a change in pull request #2153:
URL: https://github.com/apache/apisix/pull/2153#discussion_r509907685



##########
File path: .travis/apisix_cli_test.sh
##########
@@ -408,3 +408,36 @@ if ! grep "lua_shared_dict my_dict 1m;" conf/nginx.conf > /dev/null; then
 fi
 
 echo "passed: found 'my_dict' in nginx.conf"
+
+# check disable cpu affinity
+git checkout conf/config.yaml
+
+echo '
+nginx_config:
+  enable_cpu_affinity: false
+' > conf/config.yaml
+
+make init
+
+count=`grep -c "worker_cpu_affinity" conf/nginx.conf  || true`
+if [ $count -ne 0 ]; then
+    echo "failed: nginx.conf file disable cpu affinity"

Review comment:
       This case is used to disable cpu affinity.




----------------------------------------------------------------
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.

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