A user (nineb) is seeking ways to run Discourse on a resource-constrained VPS with less than 2GB RAM and no swap, as they’ve already provisioned a non-upgradable 1-core, 2GB RAM instance. They’ve tried a workaround to temporarily create swap during installation but are unsure if it will work. Other users (pfaffman, itsbhanusharma, Ed_S) advise against this approach, emphasizing the importance of swap and suggesting alternatives like increasing resources, never updating, or migrating data. pfaffman mentions the possibility of building the image on another machine, but acknowledges the complexity. itsbhanusharma clarifies that the key takeaway is the advice against circumventing the swap requirement, while the suggestion to contact the cloud provider was merely an optional path forward.
ניסיתי את הדבר הכי קרוב עם שתי חלונות SSH. צור swap, הפעל את ה-launcher, בחלון SSH אחר מחק את ה-swap, ה-launcher המשיך. וזה עשוי לעבוד על VPS עם הקצאה טובה יותר. בפעם הבאה שיהיה לי פנאי אנסה זאת. יש לי כעת מופע שרץ על 4c12r
בדרך כלל אתה צריך יותר זיכרון (RAM+swap) לעדכון מאשר לשירות רגיל.
אם אין לך מקום ל-swap, זה בגלל שנתוני הפורום שלך (מסד נתונים+העלאות) משתמשים במקום שאתה צריך.
זה אפשרי שתוכל לעקוב אחר האסטרטגיה
לעולם אל תעדכן
או האסטרטגיה
העבר את הנתונים שלך בכל פעם להתקנה חדשה ומעודכנת
אבל עשיתי מאבקים משלי עם מופע בגודל מינימלי, תוך שימוש בעשרות שנות ניסיון במערכות שלי. בסופו של דבר, היה עדיף להשתמש במכונה גדולה יותר. למעשה, עדיף מאוד, מכיוון שהמכונה הגדולה יותר הייתה זולה יותר. הסיבה לכך היא שספקים שונים גובים סכומים שונים - עברתי מ-Digital Ocean ל-Hetzner.