Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Maintaining Grouper database size

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Maintaining Grouper database size

Chronological Thread 
  • From: Rory Larson <>
  • To: "" <>
  • Subject: [grouper-users] Maintaining Grouper database size
  • Date: Mon, 29 Jan 2018 14:13:28 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:4dOvIxbqvrksLDVtbHvih1L/LSx+4OfEezUN459isYplN5qZr8i+bnLW6fgltlLVR4KTs6sC17KP9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCagbb9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA57m/Zl9BwgqxYrhKguxNxzIHbbZqJNPVlYq/RYc8WSXZDU8tXSidPApm8b4wKD+cZIehYqJP9plsTphW4HwasHvjvyjhOhnTr2qA6yeAhHhvc3Aw7GNIOtmnYoc7oNKcUVeC51rfHwijeb/5P3zr29YvGcgg5rP2SR718bdfdxEwyGw/Yk1mdrILlMjyJ2ugRtmWW7fRvWO21hGMirgx9vCSjyto0hoXUmI4YzkrI+CF3zYovKtC0UlB3bN2iHZBNrS+VLZF2TdknQ2xwuCY11LkGuZmjcSYS1JkpwALTZvKef4WV4B3vSv+dITBji317Yr6/gAuy8VS7xe37S8m01ktFojBdktnWsXANywLc5dSbSvt8+Ueh3yyD1wfO6uFYJUA0kq3bK507zrEskZoTtFzPHi7wmErokK+bblso9fK05+j6Z7jqu4KQO5JxhwHwPakihtCzDOE6PwcQUGWU4+Gx2bj98UHlXblGlvg2nbPYsJDeK8QbvKm5AwpN34Y57xawFS2m0M8fnXkBMV5IYw+Hj47tO13UPv/3EOq/j0y2kDh33/DGIqHhApLVI3jMirfheqt961ZCxwop1Nxf+olUBa8bIPLoQULxsN3YDgQlMwyv3errEtR91oUCWW2RGK+ZNr3dsUOW6u41PeaDeZIV637BLK1v6OTpkGc0gxoAZqSzxrMWbmy1BPJrPx/fbHbxyJ9VHn0NoxIzVqn3k1CYShZSYWq/RaQx+mt9BY67W9TtXIeo1YaGxjbzOpRMfWdAQgSWFX7ybIKCAt8RbibUL8N8xG9XHYO9QpMsgEn9/DTxzKBqe7LZ
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99


We are encountering an issue of our Grouper database growing to a size that
threatens to use up the entire hard drive space available. The database
server is a physical machine with no room to expand, running a MySQL-type
database (5.5.56-MariaDB MariaDB Server).

The problem is not so much the size of the group data itself, but with
point-in-time tables that record what that data was back to the beginning of
the Grouper installation. Some of these have grown to huge sizes, on the
order of 20 GB or so. A suggestion has been made that we could delete a lot
of this prior to some reasonable point in time, especially groups or
memberships that no longer exist. This would be fine, but I'm wondering if
this can be done from the database command line on a per-table basis, or
whether there are dependencies that require doing this through gsh function

Also, because this is a MySQL-type database, shrinking the database physical
size after deletion of unnecessary data is not trivial. OPTIMIZE TABLE ...
might work, or it might make a table bigger. ALTER TABLE ... ROW
FORMAT=COMPRESSED is promising as tried on our test database, but takes about
four times as long as OPTIMIZE TABLE. In either case, updating has to be
shut down while running them, and they may require duplicating the table
during the operation. We are at 90% now, and can't afford any more big
tables. The ultimate MySQL solution seems to be to dump the database, delete
the whole thing, and reload it, which would mean complete downtime for

Does anyone else using a MySQL-type database have a system for handling this
problem and maintaining a reasonable database size?


Archive powered by MHonArc 2.6.19.

Top of Page