zimapurple
zimapurple
RRailway
Created by zimapurple on 6/8/2023 in #✋|help
How do I set up PR environments to have a postgres service?
8a43b0e6-5720-40f3-8ee1-27f04ba76646
15 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
Lol, totally. Thanks for the rubberducking.
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
Ace, to make sure I'm totally on the same page, my project witty-humour has multiple environments, such as production. In production I can have a django service that has 8vcup and 8gb mem and an additional FastAPI service, that has a separate 8vcpu and 8gb mem, making that environment access a total of 16 vcpu and 16 gbmem. Have I got that right?
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
Run from local the answer to your question is:
engi-alpha-django-web-1 | <class 'pandas.core.frame.DataFrame'>
engi-alpha-django-web-1 | RangeIndex: 336 entries, 0 to 335
engi-alpha-django-web-1 | Data columns (total 2 columns):
engi-alpha-django-web-1 | # Column Non-Null Count Dtype
engi-alpha-django-web-1 | --- ------ -------------- -----
engi-alpha-django-web-1 | 0 ds 336 non-null datetime64[ns, UTC]
engi-alpha-django-web-1 | 1 y 336 non-null float64
engi-alpha-django-web-1 | dtypes: datetime64[ns, UTC](1), float64(1)
engi-alpha-django-web-1 | memory usage: 5.4 KB
engi-alpha-django-web-1 | <class 'pandas.core.frame.DataFrame'>
engi-alpha-django-web-1 | RangeIndex: 336 entries, 0 to 335
engi-alpha-django-web-1 | Data columns (total 2 columns):
engi-alpha-django-web-1 | # Column Non-Null Count Dtype
engi-alpha-django-web-1 | --- ------ -------------- -----
engi-alpha-django-web-1 | 0 ds 336 non-null datetime64[ns, UTC]
engi-alpha-django-web-1 | 1 y 336 non-null float64
engi-alpha-django-web-1 | dtypes: datetime64[ns, UTC](1), float64(1)
engi-alpha-django-web-1 | memory usage: 5.4 KB
So not big. The answer to my problem however is not the data size, but some input data, (particularly the ones that fail), have majority 0 values, therefore the maths goes ballistic. It technically can cope with 0, but the way the maths gets executed becomes too intensive, and then thats where the timeout occurs on the deploy. So, that's the core issue, and I guess I need to do better UI/ upfront checks for that. but my original question still is floating in my head. If I ran up another railway service just to do the maths, and then got django to call it via an API, how does railway allocate resourcing between those 2 services? Would you expect there to be a performance gain in that architecture, or because everything is fundamentally using the same resources, it wouldn't nessicarily help? (this might just be a 'how long is a piece of string/ suck it and see' answer, but experienced insight might save me some labour 🙂 )
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
Hang on @Brody , rubber ducking this with you just struck me with something that PEBCAK. Will get back to you as I work through someting for 10 min or so
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
[2023-06-05 14:02:41 +0000] [74] [CRITICAL] WORKER TIMEOUT (pid:140) [2023-06-05 14:02:41 +0000] [140] [INFO] Worker exiting (pid: 140) [2023-06-05 14:02:42 +0000] [74] [WARNING] Worker with pid 140 was terminated due to signal 9 [2023-06-05 14:02:42 +0000] [205] [INFO] Booting worker with pid: 205 <array_function internals>:200: RuntimeWarning: invalid value encountered in cast
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
A few days ago, last week, around wed
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
21 replies
RRailway
Created by zimapurple on 6/5/2023 in #✋|help
If a DJANGO process is failing because of the workers
8a43b0e6-5720-40f3-8ee1-27f04ba76646
21 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
(fine both ways btw, straight up honest question)
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
@Brody I've spotted that railway has community templates, and there is one for Django, however I didn't start from there because a) I wasn't sure if this would ever be worth deploying, b) the template used is extremely basic, verging on unsafe unless configured? and c) I didn't actually know about railway in the first stage of the work. Therefore my question is effectively: Is this deliberately railways approach, e.g. ALL complexity of the framework is up to the user, or is there an interest in 1) extending the existing template or 2) creating a second "auth focussed" django template?
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
Seemingly just solved using the same info as in this SO: https://stackoverflow.com/questions/55726610/django-ssl-redirection-on-heroku-too-many-redirects Specifically adding the line SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') to the settings.py file. My current (and new) understanding is that this is a required setting when your project starts implementing more secure practices on proxy servers?
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
Sure, thanks for your help this evening, I'll head into the wild tomorrow.
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
that built a lot faster, I guess railway caches the layer?
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
well
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
I'll have a crack
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
Is it possible the difference between my railway.json and the fact I have a dockerfile in the repo itself is causing issues? The deploy is obviously automatically pointing at my docker, event though the railway.json points it to "NIXPACKS"
51 replies
RRailway
Created by zimapurple on 5/3/2023 in #✋|help
Having trouble starting gunicorn with Django deployed from dockerfile resulting in 503
51 replies