Skip to content

Print new version notifications in the server logs #3170

Closed

Description

@drakester1

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.

Activity

  1. rataw commented on Oct 10, 2014

    @rataw

    👍

  2. coffeemug commented on Oct 10, 2014

    @coffeemug
    Contributor

    @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?

  3. drakester1 commented on Oct 10, 2014

    @drakester1
    Author

    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.

  4. mlucy commented on Oct 10, 2014

    @mlucy
    Member

    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.

  5. added this to the subsequent milestone on Oct 10, 2014
  6. danielmewes commented on Oct 10, 2014

    @danielmewes
    Member

    Agreed. Printing a message to the log with a flag for disabling the version checks sounds good.
    Putting in subsequent.

  7. wojons commented on Oct 12, 2014

    @wojons
    Contributor

    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.

  8. coffeemug commented on Oct 16, 2014

    @coffeemug
    Contributor

    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).

  9. modified the milestones: 1.16, subsequent on Oct 16, 2014
  10. rataw commented on Oct 16, 2014

    @rataw

    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 😄

  11. deontologician commented on Oct 16, 2014

    @deontologician
    Contributor

    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

  12. danielmewes commented on Oct 16, 2014

    @danielmewes
    Member

    @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.

  13. 21 remaining items

  14. coffeemug commented on Oct 17, 2014

    @coffeemug
    Contributor

    @danielmewes can decide if that's worth doing, but it seems really nice.

  15. danielmewes commented on Oct 17, 2014

    @danielmewes
    Member

    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).

  16. danielmewes commented on Oct 22, 2014

    @danielmewes
    Member

    Let's do this asap:

    • Distinguish between two different version requests:
      1. Version check only (used by the web UI and on startup by the server, this one should remain compatible to our current request)
      2. 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:
      1. RethinkDB version
      2. Number of servers in the cluster
      3. uname -ps output (e.g.: Linux x86_64)
      4. Number of tables in the cluster, rounded to 2^(round(log_2(num_tables)))
      5. 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)
    • Keep the web UI unchanged
  17. wojons commented on Oct 22, 2014

    @wojons
    Contributor

    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.

  18. danielmewes commented on Oct 22, 2014

    @danielmewes
    Member

    @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.

  19. wojons commented on Oct 22, 2014

    @wojons
    Contributor

    @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.

  20. self-assigned this
    on Nov 13, 2014
  21. gchpaco commented on Dec 24, 2014

    @gchpaco
    Contributor

    CR 2417.

  22. added a commit that references this issue on Dec 24, 2014
  23. kofalt commented on Dec 27, 2014

    @kofalt

    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?

  24. gchpaco commented on Dec 29, 2014

    @gchpaco
    Contributor

    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.

  25. danielmewes commented on Jan 27, 2015

    @danielmewes
    Member

    #3475 and #3666 have the remaining bits for the future.
    @gchpaco implemented the parts we need for 1.16. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions