Edge for Private Cloud เวอร์ชัน 4.17.09
Edge Router จะติดตั้งใช้งานโดยใช้เราเตอร์ Nginx ในระหว่างกระบวนการอัปเกรด Edge หรือเมื่อเปลี่ยนการกำหนดค่าของเราเตอร์ คุณอาจเห็นข้อผิดพลาดในการกำหนดค่า Nginx เมื่อเกิดข้อผิดพลาดเหล่านี้ Edge จะเขียนไฟล์การกำหนดค่า Nginx ที่ทำให้เกิดปัญหาไปยัง /opt/nginx/conf.d จากนั้นคุณสามารถใช้เครื่องมือ configtest ของ Nginx เพื่อหาสาเหตุของข้อผิดพลาดได้
ตัวอย่างเช่น คุณตรวจสอบ /opt/nginx/conf.d และเห็นไฟล์ต่อไปนี้
-rw-r--r-- 1 apigee apigee 522 Jul 20 08:41 0-default.conf.bad -rw-r--r-- 1 apigee apigee 577 Jul 20 08:42 0-fallback.conf -rw-r--r-- 1 apigee apigee 1062 Jul 20 08:18 0-map.conf -rw-r--r-- 1 apigee apigee 1887 Jul 20 08:42 custorg_test_default.conf.bad
โปรดสังเกตว่าไฟล์หลายไฟล์มีคำต่อท้าย .bad
โดยทั่วไปแล้ว ข้อผิดพลาดเหล่านี้เกิดจากการที่คุณทำการเปลี่ยนแปลงที่ไม่ถูกต้องในไฟล์ /opt/apigee/customer/application/router.properties หรือทำการเปลี่ยนแปลงที่ไม่ถูกต้องในโฮสต์เสมือน ตัวอย่างเช่น คุณเพิ่มรายการต่อไปนี้
conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size=32k
ไม่อนุญาตให้ใช้ค่านี้
วิธีแก้ไขข้อผิดพลาด
- นำคำต่อท้าย .bad ออกจากชื่อไฟล์ในโฟลเดอร์
/opt/nginx/conf.dเพื่อให้ชื่อไฟล์ลงท้ายด้วย .conf - เรียกใช้เครื่องมือ Nginx
configtestเพื่อแสดงสาเหตุของความล้มเหลว/opt/nginx/scripts/apigee-nginx configtest
คุณจะเห็นเอาต์พุตในรูปแบบต่อไปนี้
nginx: [emerg] "proxy_busy_buffers_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /opt/nginx/conf/nginx.conf:47
- แก้ไข
/opt/apigee/customer/application/router.propertiesเพื่อตั้งค่าconf_load_balancing_load.balancing.driver.proxy.busy.buffer.sizeเป็น 128k - นำไดเรกทอรี
/opt/nginx/conf.dออกแล้ว:rm -rf /opt/nginx/conf.d
- รีสตาร์ทเราเตอร์
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
- คุณไม่ควรเห็นไฟล์การกำหนดค่าที่ไม่ถูกต้องในโฟลเดอร์
/opt/nginx/conf.dอีกต่อไป