[ https://issues.apache.org/jira/browse/MESOS-10173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186519#comment-17186519 ]
Andrei Sekretenko edited comment on MESOS-10173 at 8/28/20, 12:52 PM: ---------------------------------------------------------------------- {noformat} commit a91747eaf60351507f16d8d167a0fa0207a9811a Author: Andrei Sekretenko <asekrete...@apache.org> Date: Thu Jul 16 15:48:03 2020 +0200 Added protobuf messages for regex-based offer constraints. This patch adds protobuf messages for setting offer constraints that check if agent's (pseudo)attribute matches a specified RE2 regular expression. Both added contsraint predicates will evaluate to `true` when the attribute is not TEXT. This way, schedulers will have to apply on their own whatever filtration they do for non-TEXT attributes which happen to be selected by the constraint's `Selector`. Given that in the real world schedulers seem to rarely put constraints on attributes that are normally Scalar/Ranges, this should not prevent them from obtaining performance benefits by setting offer constraints. Review: https://reviews.apache.org/r/72784 commit 470665e1575b9a91dffca974485940c7a0a1fe37 Author: Andrei Sekretenko <asekrete...@apache.org> Date: Mon Aug 3 18:35:06 2020 +0200 Implemented regex-based offer constraints. Review: https://reviews.apache.org/r/72786 commit 355b971ead7079e3fabcb46aa0a8b9e31c9fb79e Author: Andrei Sekretenko <asekrete...@apache.org> Date: Mon Aug 17 20:57:43 2020 +0200 Added basic tests for regexp-based constraints. Review: https://reviews.apache.org/r/72787 {noformat} was (Author: asekretenko): {noformat} commit b2e12fc423a5c1fcb786e2fce01193ef7207006e Author: Andrei Sekretenko <asekrete...@apache.org> Date: Wed Jul 15 20:01:25 2020 +0200 Added RE2 to the CMake build. This is a prerequisite for implementing regex-based offer constraints. Review: https://reviews.apache.org/r/72782 commit afe493e73a2b954d1b2dba3d4c5f6b08b9cb0b1b Author: Andrei Sekretenko <asekrete...@apache.org> Date: Mon Aug 17 15:54:43 2020 +0200 Added RE2 to the automake build. This is a prerequisite to implementing regex-based offer constaints. Review: https://reviews.apache.org/r/72783 {noformat} > Add offer constraints on (pseudo)attribute (not) matching RE2 regex > ------------------------------------------------------------------- > > Key: MESOS-10173 > URL: https://issues.apache.org/jira/browse/MESOS-10173 > Project: Mesos > Issue Type: Task > Reporter: Andrei Sekretenko > Assignee: Andrei Sekretenko > Priority: Major > Fix For: 1.11.0 > > -- This message was sent by Atlassian Jira (v8.3.4#803005)