Replies: 9 comments 44 replies
-
I wish you had not done this. We can add Docker to our setup if we want to. There are people who are looking for the easiest solution to set up and be done with. If your objective was to state that our setup can also be used with a Docker, you could have stated just that. You didn't have to create a guide. If you believe that we are wrong and there is a significant advantage in using Docker, you could still state just that keeping our guide as a reference and only stating that using a docker is significantly better and focus your contribution to the community in explaining that. |
Beta Was this translation helpful? Give feedback.
-
Does one have to prepare the docker before actually deploying it? |
Beta Was this translation helpful? Give feedback.
-
I notice I am exceeding the free tier somehow. At least according to the report. But its less than 1 Euro or USD in one week, so really not a big deal. I have four live NS sites on the same VM, two of them receive looping data from FreeAPS X (FAX), and I know there is an issue with FAX doing excessive uploads/syncing of treatments. Some of this may also be related to mongodump/mongoimport of 400 Mb data, and some for messing around in Linux, installing some packages etc. |
Beta Was this translation helpful? Give feedback.
-
This page explains how to see what is costing the money:
https://cloud.google.com/billing/docs/how-to/reports
In any case, if you will choose the cost table and cost breakdown, they
should show much more information on where the money is being spent.
…On Thu, 17 Nov 2022 at 20:41, bjornoleh ***@***.***> wrote:
Yes, us-east1
—
Reply to this email directly, view it on GitHub
<#2460 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4TBZAQAOSZPSZG7M5BEVTWIZ35JANCNFSM6AAAAAAR7R3SNY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
A small group of testers (only seven so far) have requested access to the guide. I am curious if someone have set up multiple NS sites using this guide, and if the setup appears to stay within the free tier when multiple APS systems (Loop, AAPS etc) are uploading data. For myself, I seem to be exceeding the free tier slightly, but this may be due to some issue with the APS system we are using (FreeAPS X (FAX)). We have two phones running FAX and uploading to individual NS instances, and another two NS instances which are fed by Dexcom Share data. I have a forecasted monthly cost of around 3 USD (or EUR). For comparison, the E2 instance core + ram we are getting for free with the free tier is worth around 6 USD per month. You can see this by grouping costs by SKU. |
Beta Was this translation helpful? Give feedback.
-
Two question/comments: What is the advantage of docker over 3 separate VM? I think Bjorn said it was faster to update to new NS version with that approach. The other would be not having to go through the VM setup task again. I am not showing a charge expected for 3 separate VM. Details: I spun up 3 VM on google cloud. One is used by my real phone. Two are connected to two test phones each running Loop-dev, each uploading to their unique subdomain 24/7. I have two raspberry pi in the house so using. DASH simulator for those 2 test phones. One test phone uploads CGM simulator data to its site. The other test phone connects to my Dexcom Share via bridge. Both test phones are running closed loop. To further separate the testing, each is in a separate project. Two of the project imported > 1 GB from my t1pal site. They are each showing about $0.05. The one project where I did not import data is showing $0.00. |
Beta Was this translation helpful? Give feedback.
-
@bjornoleh - I have not run any of my VM for even 10 days yet. |
Beta Was this translation helpful? Give feedback.
-
Hi, just a heads up if anyone is actually using a Nightscout setup based on my Google document posted above: In general, this has been working very well for me. Except that after a month or two, the disc of my VM filled up to the point of no longer being able to boot. I repeated the setup, and saw that it was about to happen again, and it also happened to two others that I am aware of. Turns out this was due to a lack of any limits to logs retention in the docker-compose.yml template that my setup and was based on, (from the Nightscout/cgm-remote-monitor repo). Given enough time, any disc will eventually fill up without any limits. My setup appears to generate more logs than most (FreeAPS X is known to do that), and I was hopefully bitten by this before too many others had to deal with it. To avoid any such issues, there are two options:
nightscout/cgm-remote-monitor@4dd6f39 You will need this in the top of the docker-compose:
And then append this to each service (mongo, traefik and each instance of Nightscout):
The new logging limits only take effect after the containers are recreated:
The chosen parameters for log limits are a bit arbitrary, but can easily be changed if needed:
I have updated my branch that is used in the Google document, so it should work for anyone starting from scratch. I didn't test this though, so please let me know of any issues. This is still not meant to be the guide of all guides for NS on Docker (another one is in the making by someone else), but this information is kind of pertinent, so wanted to get that out to anyone who might be bitten by this issue soon (or have already been bitten...). |
Beta Was this translation helpful? Give feedback.
-
Hi, another heads up if anyone is actually using a Nightscout setup based on my Google document posted above: Please consider removing the port mapping in docker-compose.yml, as this is probably not safe: change from to |
Beta Was this translation helpful? Give feedback.
-
Edited to add:
Warning:
This is not an official guide, and there is no support provided. Please understand that you are “on your own” if you do apply it.
This is just a proof of concept of an alternative approach to the xDrip guide for Nightscout on Google Cloud. Do not ask the xDrip team for support if you get stuck when diverting from their documentation.
This guide will cause conflicts if you have already followed the xDrip guide.
You may not be able to follow the xDrip guide on the same VM after following my instructions.
You may have to delete the VM and start over. Please backup and download to your computer any database contents you wish to keep before deleting the VM.
And finally: Please don’t share this guide. I do not want people to start relying on this guide without understanding the above, and then go and bug the xDrip team about it if they get stuck.
Hi,
I just wanted to let you know I have put together a guide for how to set up NS on Google Cloud using Docker. It is heavily based on your xDrip NS instructions, with some modifications.
This method has some benefits over the deployment used in the xDrip script. In my experience, it is much faster to deploy and update, seems to require less machine resources, and can be used to host multiple NS instances with very little additional effort. The official Nightscout docker image is used, with the "latest" tag. This is updated automatically when the NS team push a new release to the master branch. To update your Nightscout, just SSH into your VM, and type
docker compose up -d
.It is also possible to specify a fixed version by changing the tag. This is defined in docker-compose.yml, and a change will take action after
docker compose up -d
.Both the Nightscout app and the mongo database are running in Docker containers, and this seems to also have some benefits. The database can "easily" and also securely be accessed from tools like MongoDB Compass.
I believe it will still fit the Compute Engine free tier, but this is yet to be verified, as I have run it for less than a week. Looks promising, though.
I don’t really want to take on an additional support burden, and ideally, this could be incorporated in the xDrip Nightscout setup guide if you find it useful, so I don't have to maintain yet another set of instructions for users to choose from. But I'll share it for early testing here and probably also on Nightscout Discord etc.
The guide is in this Google document (available upon request):
Nightscout on Google Cloud using Docker
There are lots of links to the source, so I am not trying to take any credit for that. I'll put in some more explicit references for the screenshots if you like. This is only the first draft anyways.
Thanks for your guides, by the way, I would not have managed this without. I am happy with my setup, and have as such reached my goal. But wanted to share this in case it can be helpful for others too, as I did spend quite a bit of time to make it work like I wanted.
Beta Was this translation helpful? Give feedback.
All reactions