grouper-users - [grouper-users] RE: Can the ChangeLogConsumerToMessage send to a remote grouper instance?
Subject: Grouper Users - Open Discussion List
List archive
[grouper-users] RE: Can the ChangeLogConsumerToMessage send to a remote grouper instance?
Chronological Thread
- From: "Hyzer, Chris" <>
- To: "Black, Carey M." <>, "" <>
- Subject: [grouper-users] RE: Can the ChangeLogConsumerToMessage send to a remote grouper instance?
- Date: Thu, 18 Oct 2018 13:35:09 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:cdRDNBO9Rouj31zWkGcl6mtUPXoX/o7sNwtQ0KIMzox0K/z5r8bcNUDSrc9gkEXOFd2Cra4c1KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsZfWTJcDIOgYYUBDOQBMuRZr4bhqFUBogCzBRW1BO/z1jNEmmP60bM83u88EQ/GxgsgH9cWvXjartv0NKYTXv6vzKXQ0D7OcfNW2S386IjTfBwqvPaBXbdsfsrRyUguFh3Kjk+LpIzkJDOayv4Bs3WD7+V+U+KvjXQrpB9srTiy38ohjJTCiIwSylDB7yp5wYA1KMW5SE59fd6rDoFQtyeEOItqXM8uWX9ntzsnyrAApJW1fzAKxYw5yxLCavGLaYaF7gz5WOqMIjp0mGhpdK+iixqs6USs1+PxWtWu3FtOsyZJiMfAum0J2hDJ98SKSPpw8l+v2TmR1A3f9uRJLEUpmqfYJZ4u3Ls9mYQNvUjfHiL7nV75g7GZe0gg/+Wl6/nrbajnq5KaKoR6kBvxMr40lcy6Gek4MhYBX2yc+emkzLPu4Ur3TKlFg/Evj6TXqJ7XKd0cpqGiHQBZyIEj6wujDzi919QYgH8HI09fdBKflYjpPE3OL+7kAvejglSslzFry+rBPr38HpXNKn/DkLDifbpn90Fczw8zwche55JSFL4BPOr+VlHsuNHZFBM0PRK4z/z6BNh+yo8SQ3+DDrKHPK/KtF+H/OMvI+2CZI8Pvzb9LuAo5/vygn85mV4cfLem3YEMZXC5BfRpP1+VYWf0gtgfF2cKuBAyQ/L3h12fSTJTfWq9X7og5jEnD4KrFYjDRpqqgLycxCe0AIdWanlbClCXD3jobZ6EVuwIaCKTOc9hjicEWaa7R48g0xGuqBH1y6BhLuXK5i0Uq4jv28Zo6O3OxlkO8mk+JcCU2GLJB0p9hG4ZDxpwlugrq0h0wVTFiPIjq/tDCJpe6+4fFk9wOoTb0vR3EZXvQQ/bZf+ITkqrWNOrHWt3Q94siZdabFx6Bs2vlFXexCewGJcUkaCGHpo57via0nTscZVT0XHDgeMBnksrWI8HHm28h7U1v1zWDI7YgUiDv6exfuIBxCPL8iGOwXfY7xIQaxJ5TaiQBSNXXUDRt9msoxqaF+X0W706LgtMz9KDIaJWa9rvyE9LX+rnJM+APzCqg2nlAxGOy/vMd4fsd2gHlATlQEkf20F2nz6dMBQmQCKoombQFjtrQFfkY1L+/PNWqWiwCFIswgeMKUBtyun99w==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I would not do this for database migrations... is there another use case for
needing this?
If you want to sync a group in a grouper to another grouper you can use this:
https://spaces.at.internet2.edu/display/Grouper/Syncing+groups+between+group+management+systems
Anyways, beyond that, there isn't a way to do this. You could do database
replication though, the target would likely be readonly
-----Original Message-----
From:
<>
On Behalf Of Black, Carey M.
Sent: Monday, October 15, 2018 5:49 PM
To:
Subject: [grouper-users] Can the ChangeLogConsumerToMessage send to a remote
grouper instance?
My goals is to "migrate" events from one Grouper install to another. Then
"re-play" the events into the remote grouper.
In my universe I am using grouper UI and WS services.
NOTE: I have not yet cracked the "book" on the grouper client. ( Maybe that
is the gap in my knowledge? )
REF1:
https://spaces.at.internet2.edu/display/Grouper/Grouper+messaging+send+receive+change+log+adapter+example
"Configure a message sender (change log format) in
grouper-loader.properties"
edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerToMessage ( I am
guessing this needs to be a "local queue")
It looks like there is a class that can take a changelog and turn it
into a "message".
But I don't see how I can send that message to a "remote"
grouperBuiltinMessaging system.
If I could send to the WS "Message Receive" on Grouper2 that might be
ideal to transport between the two. ( Especially if the "Receive" WS actually
decodes the message and will "replay it" on the local instance too, or it
could be smart enough to call the "right web service" from the sending code.)
REF2:
https://spaces.at.internet2.edu/display/Grouper/Grouper+messaging+to+web+service+API
" Hook up grouper WS to read from a queue "
" That will cause all WS servers to listen on a queue or topic for
messages " ( I am guessing this needs to be a "local queue")
But then again I am left with "how to connect it to the
'other' grouper instances message queue?".
REF3: https://spaces.at.internet2.edu/display/Grouper/Grouper+Client
Appears to be able to talk to Grouper WebServices... maybe it could
read "Queue1 from Grouper1" and write "Queue1 on Grouper2"?
High level desired flow:
Group1 changeLogConsumer to(-->) message queue on Grouper2 (not sure
if REF1 can do this or not, might need REF1 and REF3?)
And
Grouper2 Message Queue to (-->) Grouper2 API calls on Grouper2 (
REF2)
It might work like this: ( three queues, maybe just configuration to get
there?)
Users adds a folder on Grouper1.
Change log consumer creates a message on Grouper1(REF1) to "create
folder 'newFolderName'".
( Ideally, message is delivered to Grouper2 by Grouper 1. But
might require using grouperClient REF3) to move the message from Grouper1 to
Grouper2?)
Message processor (REF2 on Grouper2) reads the local queue and
creates the 'newFolderName' on Grouper2.
NOTE: I would be prefer to remove the queue in the middle if that could be
done too. After all the sending ChangeLogConsumer is a queue. :)
In this case: (two queues)
Users adds a folder on Grouper1.
Change log consumer(REF1) creates a message on Grouper2 (can it do
that?) to "create folder 'newFolderName'".
Message processor (REF2 on Grouper2) reads the local queue and
creates the 'newFolderName' on Grouper2.
NOTE: Maybe more ideal : (only one queue only on the sending side)
Users adds a folder on Grouper1.
Change log consumer(some combination of Ref1 and Ref2 ?) calls WS on
Grouper2 to "create folder 'newFolderName'".
As long as this data flow is reasonably "fast" (completed within a few
minutes of user actions), reliable ( 100% ), and covers 100% of the Grouper
API, then I think it would work well for the following use cases:
) Database migrations (across DB types)
Likely leaves Point in time data behind... but I think that
could be dealt with in other "non-real time" ways for audit.
Or if the messages could preserve the original "start dates"
that would be ideal. Then only the "already closed" items would be left
behind. And all active objects would be "reconstructed".
) Filter replicas ( where you only want some of the data to be sent. )
) "warm backups" / "Read only copies"
I hope I am missing just some configuration details here...
Thoughts? Clue bricks? Recipes?
Thanks in advance.
--
Carey Matthew
- [grouper-users] Can the ChangeLogConsumerToMessage send to a remote grouper instance?, Black, Carey M., 10/15/2018
- [grouper-users] RE: Can the ChangeLogConsumerToMessage send to a remote grouper instance?, Hyzer, Chris, 10/18/2018
Archive powered by MHonArc 2.6.19.