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. - מריצים את הכלי
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-service edge-router restart
- קבצי התצורה הלא תקינים לא אמורים להופיע יותר בתיקייה
/opt/nginx/conf.d.