Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4687

Implement reliable floating point for scalar resources

    Details

      Issue Links

        Activity

        Hide
        neilc Neil Conway added a comment - - edited
        Show
        neilc Neil Conway added a comment - - edited https://reviews.apache.org/r/43635/
        Hide
        jvanremoortere Joris Van Remoortere added a comment -
        commit 02c4dbda3d6f64fdd57d997664c6983cc5ae2a78
        Author: Neil Conway <neil.conway@gmail.com>
        Date:   Fri Feb 26 18:09:12 2016 -0800
        
            Changed scalar resources to use fixed-point internally.
            
            Scalar resource values are represented using floating point. As a
            result, users could see unexpected results when accepting offers and
            making reservations for fractional resources: values like "0.1" cannot
            be precisely represented using standard floating point, and the resource
            values returned to frameworks might contain an unpredictable amount of
            roundoff error.
            
            This commit adjusts the master to use fixed-point when doing internal
            computations on scalar resource values. The fixed-point format only
            supports three decimal digits of precision: that is, fractional resource
            values like "0.001" will be supported, but "0.0001" will not be.
            
            Review: https://reviews.apache.org/r/43635/
        
        Show
        jvanremoortere Joris Van Remoortere added a comment - commit 02c4dbda3d6f64fdd57d997664c6983cc5ae2a78 Author: Neil Conway <neil.conway@gmail.com> Date: Fri Feb 26 18:09:12 2016 -0800 Changed scalar resources to use fixed-point internally. Scalar resource values are represented using floating point. As a result, users could see unexpected results when accepting offers and making reservations for fractional resources: values like "0.1" cannot be precisely represented using standard floating point, and the resource values returned to frameworks might contain an unpredictable amount of roundoff error. This commit adjusts the master to use fixed-point when doing internal computations on scalar resource values. The fixed-point format only supports three decimal digits of precision: that is, fractional resource values like "0.001" will be supported, but "0.0001" will not be. Review: https: //reviews.apache.org/r/43635/

          People

          • Assignee:
            neilc Neil Conway
            Reporter:
            neilc Neil Conway
            Shepherd:
            Joris Van Remoortere
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile