On Thu, Jun 8, 2017 at 9:37 PM, 'Ashwanth Kumar' via go-cd <
[email protected]> wrote:

> If during that 10 min window if any cron'd pipeline were to trigger, would
> it happen post when the server comes back up?
>
>    - I think it's a NO. Just wanted to confirm anyways.
>
>
If the server is down for 10 minutes and at minute 6 of that downtime is
when a cron timer was *supposed* to have triggered, then it won't trigger
after startup.


When we shutdown go-server what happens to active pipelines? Does graceful
> shutdown wait for all running pipelines to complete or do a kill -9 type of
> exit?
>
>    - I've personally kill -9'd go-server process when active pipelines
>       were there and agents would eventually report back the status to the
>       go-server.
>
> I wouldn't suggest a kill -9 at any point, because it can corrupt the
database. Graceful shutdown does not wait for pipelines to complete (new
pipelines might start in that time too, I guess, if it waits). Agents
continue to run and they have some ability to retry but I'm not entirely
sure if it handles the server being down at every point.



> What happens if during that 10 min window an agent finishes a job. Where
> would it report back the status? Would it wait for Go Server to come back
> up and until then may be do an exponential backoff ? If yes, how long does
> it really wait for the go-server to come back up?
>

Same as before. I think, at some point it will give up and the job will be
rescheduled when the server restarts, since it wouldn't have seen a status
from the agent. I don't think it's exponential backoff.



> If GoServer's Address is provided as a DNS (ex. go-server.mycompany.com)
> to all agents (running separately), when the underlying IP address of the
> instance changes (spot outage and a new VM comes up), would the DNS cache
> TTL (of JVM) cause any issues for agent when they try to communicate with
> the server?
>

Yes, I think it will. The agents won't resolve the name to the new IP till
the cache expires and the agent restarts, I guess.


Cheers,
Aravind

PS: Haven't tried these out. It's all "in my opinion", fwiw.

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to