Edge for Private Cloud גרסה 4.17.01
ה-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.
- מריצים את הכלי configtest של Nginx כדי להציג את הסיבה לכשל:
> /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-servce edge-router restart - קובצי תצורה לא תקינים לא אמורים להופיע יותר בתיקייה /opt/nginx/conf.d.