You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Print new version notifications in the server logs #3170
We use a custom build of rethinkdb pretty heavily and love it, but it would be really nice to see new version notifications in the server log. The browser-based administration console is great for our developers, but as an ops person, I hooked a few custom monitoring tools into /ajax to view server logs, historical performance, etc. It would be great to know when new versions are available, particularly for point releases that fix critical bugs, and it's a pain to do it by following the blog/opening the web console/going to rethinkdb.com. Having a message in the server log would be really helpful.
@drakester1@rataw -- we purposely didn't include the functionality into the server because we were worried about privacy. We didn't want people to look at their firewall logs and discover that the server calls home to find if there are newer versions. We thought it would rub users the wrong way.
Do you think this is something that would bother you?
Unless you're sending my data to your servers, I don't see how there could be any privacy concerns. All enterprise-grade server software in our stack does this, including the ones with strong open source roots like RethinkDB. I have never heard even the strongest of privacy advocates complain about this kind of functionality.
If people want this it seems reasonable to do it. We should probably add an option to disable it, though, just in case somebody is bothered by the functionality.
From what i understand from @AtnNn a while back when --no-directio was added to the config file that "inferstrure" for settigns was not good but other then that this does not seem like something that should be the hardest thing to add and could be a easy win and maybe should just be triggered when users open reql-admin on any server.
Incidentally, this would give us much better visibility into usage numbers which would be very helpful for the company. It would be great to do it ASAP, so moving to 1.16 proper.
@drakester1@rataw -- would you be opposed to us also sending the cluster ID to the servers? This way we could collect statistics on the sizes of people's clusters which would help us guide product development (e.g. should we prioritize certain scalability features?) It would be a unique UUID, which is essentially a random number. We couldn't tell anything about you or your data from it (other than the size of the cluster and which machines/IPs belong to a given cluster).
It wouldn't bother me at all, especially if there is a configuration option to turn the feature off. We use a lot of enterprisey open source software at our work, and they send back a heck of a lot more data than that 😄
A lot of projects have a "Would you like to submit anonymous statistics to help development..." option when installing, that way there's no surprise later if it's phoning home with data
@AtnNn could we ask such a question during package installation (through debconf for example?)?
If it's not easy I believe we should not bother with asking at the time of installation. Instead we would have a configuration flag to disable the update check.
Which data would we send exactly? I'm not sure if we have such a thing as a cluster ID. If we do, we should send the cluster ID and the machine ID of the current server. Otherwise we could send the list of all machine IDs in the cluster.
We could also send the total size of all database files together, and maybe the number of tables (but not their names).
All that information together would give us a much better understanding of the size of deployments.
We should add it to sever_info, but only in a second step (for 1.17 maybe).
For 1.16 I think we should keep the web UI ping as it is. On the server side we should send a request with the discussed information and just implement the log output (at restart and whenever the update information changes).
Distinguish between two different version requests:
Version check only (used by the web UI and on startup by the server, this one should remain compatible to our current request)
Version check with statistical data submission
Make the server check the version once on startup using a request of type 1 (version check only).
In addition, make the server recheck the version once every 24 hours using a request of type 2 (submit statistics). The first such check should happen 24 hours after the server was started.
If one of the checks returns a version that is bigger than the current one, print an info message to the log. The server should then remember the version (in RAM) and only print another message if a yet newer version becomes available (or the server is restarted).
When sending a request of type 2, also send the following data:
RethinkDB version
Number of servers in the cluster
uname -ps output (e.g.: Linux x86_64)
Number of tables in the cluster, rounded to 2^(round(log_2(num_tables)))
Accumulated size of all shards on this machine (in bytes), rounded to 2^(round(log_2(size)))
Add a server parameter to disable all version checks (though unless it's easy to do this would not affect the web UI's version check)
For what i am thinking is this should be a cluster level thing checking for updates or not. So then the next thing needs to be making sure the user is okay with it. I think when the user first loads the UI dashboard or the admin console that is when they are aksed about sending data upstream version checking and so on. and then it should be easy from UI or CLI to enable or disable or to run a one time check.
@wojons for keeping this simple it will be a simple command line flag for now. Also we decided to make it opt-out because we don't want to bug users with additional questions when first setting up a cluster.Note that we are not going to send any unique IDs and even the size of the DB and number of tables will be heavily rounded to stop us from being able to identify individual users.
@danielmewes flags are fine as long as its also supported in the config file and commited out by default because lots of people may have config mangment. also when you say hevely rounded it will be like user has less then 100 tables user has less then 1000 tables and so on. I guess how that can help stop you from guessing users but in the end there will be more users then you can guess really and knowing some info like super large tables and so on could help but its ur call.
Just to chime in, in our local environments we restart the RDB process very frequently (several times an hour - our scripts trigger it on every rebuild since there's no harm in not doing so), and in general it is confusing to ask individuals to upgrade when we actually keep a unified version & upgrade all at once.
It sounds like there will be a single launch-time flag to opt out, which will work great for us.
I have seen upgrade notifications in the webUI before - will this also turn that off?
Not as a part of this enhancement, I don't think; but I would strongly urge you to file a different issue for that, as it shouldn't be too difficult. We might even be able to get it in to 1.16.
Activity
rataw commentedon Oct 10, 2014
👍
coffeemug commentedon Oct 10, 2014
@drakester1 @rataw -- we purposely didn't include the functionality into the server because we were worried about privacy. We didn't want people to look at their firewall logs and discover that the server calls home to find if there are newer versions. We thought it would rub users the wrong way.
Do you think this is something that would bother you?
drakester1 commentedon Oct 10, 2014
Unless you're sending my data to your servers, I don't see how there could be any privacy concerns. All enterprise-grade server software in our stack does this, including the ones with strong open source roots like RethinkDB. I have never heard even the strongest of privacy advocates complain about this kind of functionality.
mlucy commentedon Oct 10, 2014
If people want this it seems reasonable to do it. We should probably add an option to disable it, though, just in case somebody is bothered by the functionality.
danielmewes commentedon Oct 10, 2014
Agreed. Printing a message to the log with a flag for disabling the version checks sounds good.
Putting in subsequent.
wojons commentedon Oct 12, 2014
From what i understand from @AtnNn a while back when --no-directio was added to the config file that "inferstrure" for settigns was not good but other then that this does not seem like something that should be the hardest thing to add and could be a easy win and maybe should just be triggered when users open reql-admin on any server.
coffeemug commentedon Oct 16, 2014
Incidentally, this would give us much better visibility into usage numbers which would be very helpful for the company. It would be great to do it ASAP, so moving to 1.16 proper.
@drakester1 @rataw -- would you be opposed to us also sending the cluster ID to the servers? This way we could collect statistics on the sizes of people's clusters which would help us guide product development (e.g. should we prioritize certain scalability features?) It would be a unique UUID, which is essentially a random number. We couldn't tell anything about you or your data from it (other than the size of the cluster and which machines/IPs belong to a given cluster).
rataw commentedon Oct 16, 2014
It wouldn't bother me at all, especially if there is a configuration option to turn the feature off. We use a lot of enterprisey open source software at our work, and they send back a heck of a lot more data than that 😄
deontologician commentedon Oct 16, 2014
A lot of projects have a "Would you like to submit anonymous statistics to help development..." option when installing, that way there's no surprise later if it's phoning home with data
danielmewes commentedon Oct 16, 2014
@AtnNn could we ask such a question during package installation (through debconf for example?)?
If it's not easy I believe we should not bother with asking at the time of installation. Instead we would have a configuration flag to disable the update check.
Which data would we send exactly? I'm not sure if we have such a thing as a cluster ID. If we do, we should send the cluster ID and the machine ID of the current server. Otherwise we could send the list of all machine IDs in the cluster.
We could also send the total size of all database files together, and maybe the number of tables (but not their names).
All that information together would give us a much better understanding of the size of deployments.
21 remaining items
coffeemug commentedon Oct 17, 2014
@danielmewes can decide if that's worth doing, but it seems really nice.
danielmewes commentedon Oct 17, 2014
We should add it to
sever_info, but only in a second step (for 1.17 maybe).For 1.16 I think we should keep the web UI ping as it is. On the server side we should send a request with the discussed information and just implement the log output (at restart and whenever the update information changes).
danielmewes commentedon Oct 22, 2014
Let's do this asap:
2^(round(log_2(num_tables)))2^(round(log_2(size)))wojons commentedon Oct 22, 2014
For what i am thinking is this should be a cluster level thing checking for updates or not. So then the next thing needs to be making sure the user is okay with it. I think when the user first loads the UI dashboard or the admin console that is when they are aksed about sending data upstream version checking and so on. and then it should be easy from UI or CLI to enable or disable or to run a one time check.
danielmewes commentedon Oct 22, 2014
@wojons for keeping this simple it will be a simple command line flag for now. Also we decided to make it opt-out because we don't want to bug users with additional questions when first setting up a cluster.Note that we are not going to send any unique IDs and even the size of the DB and number of tables will be heavily rounded to stop us from being able to identify individual users.
wojons commentedon Oct 22, 2014
@danielmewes flags are fine as long as its also supported in the config file and commited out by default because lots of people may have config mangment. also when you say hevely rounded it will be like user has less then 100 tables user has less then 1000 tables and so on. I guess how that can help stop you from guessing users but in the end there will be more users then you can guess really and knowing some info like super large tables and so on could help but its ur call.
gchpaco commentedon Dec 24, 2014
CR 2417.
Merge branch 'gchpaco_3170' into next
kofalt commentedon Dec 27, 2014
Just to chime in, in our local environments we restart the RDB process very frequently (several times an hour - our scripts trigger it on every rebuild since there's no harm in not doing so), and in general it is confusing to ask individuals to upgrade when we actually keep a unified version & upgrade all at once.
It sounds like there will be a single launch-time flag to opt out, which will work great for us.
I have seen upgrade notifications in the webUI before - will this also turn that off?
gchpaco commentedon Dec 29, 2014
Not as a part of this enhancement, I don't think; but I would strongly urge you to file a different issue for that, as it shouldn't be too difficult. We might even be able to get it in to 1.16.
danielmewes commentedon Jan 27, 2015
#3475 and #3666 have the remaining bits for the future.
@gchpaco implemented the parts we need for 1.16. Closing.
Merge branch 'gchpaco_3170' into next