Closed Bug 1134449 Opened 11 years ago Closed 10 years ago

Generate 1% daily sample of rooms loop logs for user advocacy analysts

Categories

(Cloud Services :: Operations: Metrics/Monitoring, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kparlante, Assigned: whd)

References

Details

:trink will write a heka filter to generate the sample. If I understand correctly, the ask is rooms traffic for a 1% sample of rooms, so: Logger: mozilla-loop-server method: any path: /rooms/<token> token: should be same as <token> in the path, we want 1% of these Note: this will not collect the log entries of requests that create rooms (POST /rooms), as the server does not log the room token of the created room. :abr -- log a bug for the server team if you want the room token logged for successfully created rooms :abr, :rrayborn, :cww -- let us know if that is not the sample you want We'll use a logrotated fileoutput to create json files, which will then be put in an s3 bucket that the user advocacy folks have access to. (:whd will be in charge of this step). The long term answer is to help the user advocacy folks (and any other analysts working with this data) write filers/outputs in the new pipeline, using tools & processes that we work out in the next few months.
Flags: needinfo?(rrayborn)
Flags: needinfo?(cww)
Flags: needinfo?(adam)
Status: NEW → ASSIGNED
I think this is right, for the initial analysis. To be clear, we're getting 1% of the rooms, not 1% of the messages. Which is to say: if a room is one of those 1% selected, we'll get 100% of the log messages relating to the room. In terms of room creation, I don't think there's anything we need to dig into there at the moment. If we have questions arise about the failure rates associated with room creation, we may have to add some information to what's logged, but that's not really the focus at the moment.
Flags: needinfo?(adam)
To clarify, the 1% number was arbitrarily chosen. I'm fine with just calling it 1% of rooms over a week, but preferably we *could* toggle that number to aim for a large but consumable number of events (something like ~2 GB for the time being). Also, we've been asked by Adam/Chad to try and have a quick ad hoc analysis by Tuesday of next week (2/24), so we'd appreciate any data as soon as you can.
Flags: needinfo?(rrayborn)
This will use the same sampling mechanism used by FHR/Telemetry and will therefore require the shared Heka instance to be upgraded before it can be used.
Depends on: 1134712
(In reply to Mike Trinkala [:trink] from comment #3) > This will use the same sampling mechanism used by FHR/Telemetry and will > therefore require the shared Heka instance to be upgraded before it can be > used. For this timeframe, and given that we're only seeing 2,000 - 8,000 transactions per minute, and not all of them are POST to /rooms/*, I would think that a dump of 100% of calls over a reasonable time period (say, 24 hours) would still be manageable. I mean, for 24 hours, we're talking like 5 million to 6 million rows at most, probably much less. It'll be big, but manageable.
Per Adam's reply: SGTM
Ok, we need to go to Plan B to get you data ahead of Tuesday. We have the code to do the sampling, but getting that code on production will take too long. whd has generated a day's worth of log data and placed it in an s3 bucket. He needs to get credentials to Rob and/or Cheng so they can get going. Please ping us on irc in #datapipeline.
Flags: needinfo?(cww)
Assignee: mtrinkala → nobody
Assignee: nobody → whd
Reopen if needed.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.