Hello, is it just me or do GraphQL Servers deploye...
# orm-help
p
Hello, is it just me or do GraphQL Servers deployed to
now
always take at least 40 seconds to boot? I can’t even keep the instance up all the time. Any insights?
k
I've had the same question actually, but haven't had time to look into it. As far as I know, I've set the min-scaling to 1 instance so it "should" be up all the time. But for some reason it keeps getting frozen after some inactivity by Now.
p
Yup, same here.
k
Yup, in my case I'm defining the scaling rules in
now.json
but I might be overlooking something. https://github.com/ounaturg/ounaturg-server/blob/master/now.json
h
You can ping server so its always up because it gets frozen after few minutes without requests
k
But shouldn't setting a min-scale resolve the freezing issue?
h
Yea, because default is 0, auto
But with now 2.0 it shouldn't be problem because they showed from freeze state to operating under 0.1 sec
but maybe it will take a lot of time to deliver like
bru1
cluster πŸ˜„
k
Right, but for some reason my (and @picosam's?) deployments get frozen even when the min-scale is set to 1. That's what's puzzling.
h
Do you use free trier?
k
No, paid plan
h
thats strange, because my was working eveytime fine
πŸ€·β€β™‚οΈ 2
m
I have the exact same scenario, no matter the scaling, my instances freeze over night. I'm also on the paid plan. Maybe it would be a good idea to contact support πŸ™‚
k
Seems like Sam already did. Thread to follow πŸ‘‰ https://zeit-community.slack.com/archives/C1TMPLCKS/p1525258690000439
πŸ‘ 2
l
Please post back the resolution. I'm curious
p
I manually use
now scale ${deployment_name} 1
β€” that said, I do not see this respected at all since I now have a GraphQL server scaled to 3 instances, even though the command above clearly sets the maximum to 1!