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
ถึง 128 K - นำไดเรกทอรี
/opt/nginx/conf.d
ออกแล้ว:rm -rf /opt/nginx/conf.d
- รีสตาร์ทเราเตอร์ดังนี้
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
- คุณจะไม่เห็นไฟล์การกำหนดค่าที่ไม่ถูกต้องใน
/opt/nginx/conf.d
อีก โฟลเดอร์