Opened 12 years ago

Closed 11 years ago

#97 closed (fixed)

every time data is reported, new entries are added to *_instantiation tables

Reported by: chaos@bbn.com Owned by: mrmccrac@grnoc.iu.edu
Priority: blocker Milestone: GPO GEC17 priorities
Component: Database Version:
Keywords: Cc:
Dependencies:

Description (last modified by chaos@bbn.com)

The aggregate_instantiation table contains one entry for every aggregate report which has ever been received, meaning that it gains one line every five minutes for every reporting aggregate. I believe this is unnecessary: the purpose of the table is just to store aggregate metadata, and this will bog down the database eventually.

This issue affects other *_instantiation tables, including:

interface_instantiation
resource_instantiation
slice_authority_instantiation
slice_instantiation

Change History (15)

comment:1 Changed 12 years ago by chaos@bbn.com

It's not just the aggregate_instantiation table which has this behavior --- i'll add other tables as i come across them. We identified this problem prior to GEC14, and i thought it actually did cause some problems then, though i don't remember details and may be wrong.

comment:2 Changed 12 years ago by chaos@bbn.com

Milestone: gmoc.py data submission debugging

comment:3 Changed 12 years ago by chaos@bbn.com

Description: modified (diff)
Summary: every time an aggregate reports data, a new entry is added to aggregate_instantiationevery time data is reported, new entries are added to *_instantiation tables

comment:4 Changed 12 years ago by chaos@bbn.com

I think there are also downstream effects on interface_netaddr_map and interface_vlap_map, which maybe map based on interface_instantiation rather than on interface, though i'm not as sure what's going on there.

comment:5 Changed 12 years ago by chaos@bbn.com

Description: modified (diff)

comment:6 Changed 12 years ago by chaos@bbn.com

Description: modified (diff)

comment:7 Changed 12 years ago by chaos@bbn.com

Description: modified (diff)

comment:8 Changed 12 years ago by chaos@bbn.com

Priority: minormajor

We think this should be fixed, and will look at it more tomorrow.

comment:9 Changed 12 years ago by chaos@bbn.com

The partition on which this database sits is only 37% full, so this bug is not going to break a GEC15 demo (so i'm not going to list it as a GEC15 blocker).

comment:10 Changed 12 years ago by chaos@bbn.com

Priority: majorblocker

Last Wednesday, we hit a tipping point of some sort in terms of the number of entries in gmoc-db, and submissions became slow enough that many/most new submissions started failing due to timeouts. As a result, we effectively do not have usable GMOC data for GENI right now.

On Thursday, Mitch offered to remove some entries by hand as a stopgap measure.

I'm raising the priority of this ticket to blocker, because monitoring data is currently not usable.

comment:11 Changed 11 years ago by chaos@bbn.com

Mitch pushed the fix out onto gmoc-db in a maintenance window today, so that should prevent new duplicate entries from being created. He's going to keep an eye on the situation for a few days, and then schedule another maintenance to run a script to remove existing duplicate entries.

comment:12 Changed 11 years ago by chaos@bbn.com

Josh noticed that a side effect of Mitch's change is that the "Last Updated" column in the web UI is no longer accurate --- it's turned into "Last Modified". See e.g. https://gmoc-db.grnoc.iu.edu/protected-openid/index.pl?method=aggregates&search=3626. We think we prefer "Last Updated", so people can use that field to infer whether data is being submitted, whether a sliver has gone away, etc.

Mitch thinks he can change the code so that the "Last Updated" column always gets updated even if there are no other changes, while still using the logic of the new less-database-inserting code. We're testing that out on gmoc-db2 now.

comment:13 Changed 11 years ago by chaos@bbn.com

Mitch pushed out the code with that fix onto gmoc-db2 and (since we're still in the outage window) gmoc-db. I see updated "Last Updated" fields for foam5.gpolab on gmoc-db2 and foam1.gpolab on gmoc-db. I'll keep an eye on this for the next while, but it looks like this was fixed.

comment:14 Changed 11 years ago by chaos@bbn.com

Milestone: gmoc.py data submission debuggingGPO GEC17 priorities
Owner: changed from somebody to mrmccrac@grnoc.iu.edu

Updating milestone to indicate that this is an active priority. (Mitch is actively working on finishing it).

comment:15 Changed 11 years ago by chaos@bbn.com

Resolution: fixed
Status: newclosed

We think this is basically done.

Note: See TracTickets for help on using tickets.