v2.2.0
Actions Required to Upgrade
Actions are required for this upgrade to add a new database migration.
Update to qa_server v2.2.0
bundle update qa_server
Updates for Performance Metrics
Database table to store performance data
Pull in one new migration to add the performance_history table. Should add migration: *_create_performance_history.qa_server.rb
rake qa_server:install:migrations
Run migrations
rake db:migrate
QA overrides to write performance data to the database
Update /config/application.rb to include the following prepend registrations. If this is the first prepend for your application, copy all the lines. Otherwise, just add the two registrations with your existing prepends.
config.to_prepare do
Qa::Authorities::LinkedData::FindTerm.prepend PrependedLinkedData::FindTerm
Qa::Authorities::LinkedData::SearchQuery.prepend PrependedLinkedData::SearchQuery
end
Creating metric graphs from performance data
Prerequisite: ImageMagick This was optional and is now required to be able to produce the performance metric graphs.
Add a directory to hold the images created by Gruff graphing library, if it doesn't already exist.
/app/assets/images/qa_server/charts
View performance metric graphs
The graphs are generated dynamically at request time and are displayed at the bottom of the Monitor Status page in the qa_server UI.
Data can be viewed for a day (last 24 hours), for a month (last 30 days), or for a year (last 12 months). The chart show lines for time to fetch the data from the source authority, time to normalize the data, and the time of the full request which includes the sum of both those times.
Change Log
- add performance graphs to monitor status page
- add ability to fetch a term through the UI
- update authority configs to latest versions