GithubHelp home page GithubHelp logo

Clean shutdown about docker-unifi-rpi HOT 2 OPEN

ryansch avatar ryansch commented on July 26, 2024
Clean shutdown

from docker-unifi-rpi.

Comments (2)

ryansch avatar ryansch commented on July 26, 2024

That's pretty serious. I'll look into this the next time I have some free time.

We intentionally don't use jsvc as we don't need the things it gives us inside of docker.

from docker-unifi-rpi.

Vynce avatar Vynce commented on July 26, 2024

This may be less serious than it seemed. Looking at /mnt/cache/appdata/unifi/logs/mongod.log inside the container, mongod does appear to listen for SIGTERM. It might be nice for the whole app to shut down cleanly, but AFAICT the database already does and that's the main thing that matters.

One small remaining concern is if mongod happens to take longer than 10s to shut down in some cases and gets killed instead. The log below is from an empty database that's not really being used. It only took 6ms to shut down. I also looked at another database under light load (2 APs and a couple dozen clients) and it took 200ms to shut down. Seems unlikely to be an issue for home use.

Mon Jan 13 02:12:31.935 [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
Mon Jan 13 02:12:31.935 [signalProcessingThread] now exiting
Mon Jan 13 02:12:31.935 dbexit:
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to close listening sockets...
Mon Jan 13 02:12:31.935 [signalProcessingThread] closing listening socket: 7
Mon Jan 13 02:12:31.935 [signalProcessingThread] closing listening socket: 8
Mon Jan 13 02:12:31.935 [signalProcessingThread] removing socket file: /usr/lib/unifi/run/mongodb-27117.sock
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to flush diaglog...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to close sockets...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: waiting for fs preallocator...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: closing all files...
Mon Jan 13 02:12:31.937 [conn6] end connection 127.0.0.1:36132 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn9] end connection 127.0.0.1:36140 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn7] end connection 127.0.0.1:36134 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn5] end connection 127.0.0.1:36128 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn13] end connection 127.0.0.1:36150 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn4] end connection 127.0.0.1:36126 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn8] end connection 127.0.0.1:36138 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn15] end connection 127.0.0.1:36176 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn10] end connection 127.0.0.1:36142 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn11] end connection 127.0.0.1:36144 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn12] end connection 127.0.0.1:36148 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn2] end connection 127.0.0.1:36122 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn3] end connection 127.0.0.1:36124 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn1] end connection 127.0.0.1:36120 (14 connections now open)
Mon Jan 13 02:12:31.939 [conn14] end connection 127.0.0.1:36152 (14 connections now open)
Mon Jan 13 02:12:31.941 [signalProcessingThread] closeAllFiles() finished
Mon Jan 13 02:12:31.941 [signalProcessingThread] shutdown: removing fs lock...
Mon Jan 13 02:12:31.941 dbexit: really exiting now

from docker-unifi-rpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.