text
stringlengths
9
408
[2262.30 --> 2264.04] sometimes you just have SSH,
[2264.26 --> 2265.00] you don't have
[2265.00 --> 2265.78] a lot of options,
[2265.78 --> 2266.78] and you need it
[2266.78 --> 2267.48] to be there
[2267.48 --> 2268.32] on the command line.
[2268.52 --> 2269.64] And that's what
[2269.64 --> 2270.64] Lazy Docker did for me.
[2270.90 --> 2271.48] And the fact that
[2271.48 --> 2271.92] I discovered
[2271.92 --> 2272.92] one of my containers
[2272.92 --> 2273.92] was having an issue
[2273.92 --> 2275.16] was just kind of a bonus.
[2275.70 --> 2276.88] And it's a great way
[2276.88 --> 2278.76] to reconnect
[2278.76 --> 2279.72] or I guess,
[2279.82 --> 2279.98] what,
[2280.06 --> 2281.30] reassociate yourself
[2281.30 --> 2282.54] with what the hell's
[2282.54 --> 2283.46] going on on a box
[2283.46 --> 2284.52] if you haven't been
[2284.52 --> 2285.30] on there in a little bit.
[2285.82 --> 2286.88] I've got another one
[2286.88 --> 2287.36] for you
[2287.36 --> 2289.54] that is part of Docker,
[2289.68 --> 2289.96] actually.
[2290.70 --> 2292.14] Just log into a box
[2292.14 --> 2292.48] that's running
[2292.48 --> 2293.18] a few containers
[2293.18 --> 2294.58] and type Docker stats.
[2295.26 --> 2296.56] It is pretty much
[2296.56 --> 2297.38] like htop
[2297.38 --> 2298.20] or top,
[2298.34 --> 2298.80] I suppose,
[2299.04 --> 2300.58] for all of your containers.
[2300.94 --> 2301.86] It will show you
[2301.86 --> 2302.88] the name of the container,
[2303.00 --> 2304.04] the CPU usage,
[2304.56 --> 2305.20] the amount of memory
[2305.20 --> 2306.22] that's being used,
[2306.50 --> 2307.24] net IO,
[2307.46 --> 2307.96] block IO,
[2308.12 --> 2309.00] all that kind of stuff.
[2309.10 --> 2309.72] And also,
[2309.86 --> 2310.68] how many PIDs
[2310.68 --> 2311.72] that particular container
[2311.72 --> 2312.26] has created.
[2312.26 --> 2312.62] So,
[2313.12 --> 2313.70] I can see,
[2313.82 --> 2314.18] for example,
[2314.30 --> 2314.98] here that Plex
[2314.98 --> 2317.08] needs 140 PIDs
[2317.08 --> 2318.02] within that container.
[2318.80 --> 2319.32] Whereas,
[2319.64 --> 2320.54] say,
[2320.64 --> 2321.08] something like
[2321.08 --> 2321.92] a simple Nginx
[2321.92 --> 2323.32] container is like seven.
[2324.92 --> 2325.44] Yeah,
[2325.58 --> 2325.74] oh,
[2325.78 --> 2326.56] this is great.
[2326.90 --> 2328.12] I'm looking right now.
[2329.26 --> 2330.30] Oh my gosh.
[2330.72 --> 2331.48] Some of these
[2331.48 --> 2332.92] are such hogs.
[2333.44 --> 2333.64] Yeah.
[2333.68 --> 2334.40] It's shocking
[2334.40 --> 2335.86] how bad some of these are.
[2336.04 --> 2336.70] The Java apps
[2336.70 --> 2337.14] in particular.
[2337.28 --> 2337.36] So,
[2337.50 --> 2338.84] the worst offender for me,
[2338.90 --> 2340.02] I've got BookSonic running
[2340.02 --> 2341.92] and I've actually used
[2341.92 --> 2343.18] Docker Compose's spec
[2343.18 --> 2344.66] to limit it to one gigabyte
[2344.66 --> 2345.08] of RAM.
[2345.24 --> 2345.40] So,
[2345.90 --> 2346.98] for those of you that don't know,
[2347.10 --> 2349.76] BookSonic is an audiobook-friendly
[2349.76 --> 2350.76] version of the
[2350.76 --> 2353.12] Subsonic Java-based server
[2353.12 --> 2354.14] that is now
[2354.14 --> 2355.64] like a decade old
[2355.64 --> 2356.84] or more.
[2357.24 --> 2357.90] And this thing,
[2357.94 --> 2359.20] it runs like a pig.
[2359.46 --> 2359.74] I mean,
[2359.80 --> 2360.64] it's using
[2360.64 --> 2362.46] 900 megs of RAM
[2362.46 --> 2365.06] to just sit there
[2365.06 --> 2365.92] and do nothing.
[2365.92 --> 2367.56] I mean,
[2368.24 --> 2370.44] you know what we need
[2370.44 --> 2370.60] is,
[2370.68 --> 2371.08] do you remember
[2371.08 --> 2371.42] like,
[2371.50 --> 2372.02] there was the,
[2372.28 --> 2373.14] maybe you don't,
[2373.18 --> 2373.58] this might have been