Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lite pressed fronts in Facia #18365

Merged
merged 22 commits into from
Dec 6, 2017
Merged

Conversation

QuarpT
Copy link
Contributor

@QuarpT QuarpT commented Nov 29, 2017

What does this change?

Use the lite fronts pressed by facia-press in Facia.

Can merge this to master after #18364 is merged

What is the value of this and can you measure success?

Facia can process smaller Json files for most requests, more performant - we be able to handle a higher request rate.

Tested in CODE?

I will

@QuarpT QuarpT requested a review from TBonnin November 29, 2017 12:41
@QuarpT QuarpT changed the title Pcolley/facia use lite fronts Use lite pressed fronts in Facia Nov 29, 2017
@PRBuilds
Copy link

PRBuilds commented Nov 29, 2017

PRbuilds results:

Screenshots
desktop.pngtablet.pngmobile.pngwide.png

💚 Exceptions
thrown-exceptions.js

💚 A11y validation
a11y-report.txt

Apache Benchmark Load Testing
loadtesting.txt

💚 Microdata Validation
microdata.txt

--automated message

Copy link
Contributor

@TBonnin TBonnin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I just have one question.
Let's test this thoroughly in CODE.

@@ -218,13 +218,13 @@ trait FaciaController extends BaseController with Logging with ImplicitControlle

private def getPressedCollection(collectionId: String): Future[Option[PressedCollection]] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this function is not used by endpoints that requires the full pressed file? Same question below for getSomeCollections?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain. We need to list the endpoints require the full PressedPage.

For this PR, I've assumed that only /*path/show-more/*id.jsonand /*path/deduped.json require the full version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's try to figure it out. Let me know if you need any help.

@TBonnin TBonnin force-pushed the pcolley/facia_use_lite_fronts branch from 7faf937 to 841b605 Compare December 5, 2017 11:32
@TBonnin TBonnin force-pushed the pcolley/facia_use_lite_fronts branch from 6e137e7 to 5ab77b1 Compare December 5, 2017 12:19
@TBonnin TBonnin changed the base branch from pcolley/facia_render_show_more_and_lite to master December 5, 2017 12:21
@TBonnin TBonnin force-pushed the pcolley/facia_use_lite_fronts branch from 7d334bb to ea53427 Compare December 6, 2017 11:03
.toOption(storyCountTotal)
.getOrElse(Math.min(Configuration.facia.collectionCap, storyCountTotal))
val storyCountVisible = Container.storiesCount(CollectionConfig.make(collection.collectionConfig), curated ++ backfill).getOrElse(storyCountMax)
val hasMore = storyCountVisible < storyCountMax
Copy link
Contributor Author

@QuarpT QuarpT Dec 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storyCountVisible should probably be min(storyCountVisible, storyCountMax) to avoid showing more than max

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storyCountVisible is either the number of stories necessary to fill the expected layout or storyCountMax.
In theory no container layout requires more than the max cap

@TBonnin TBonnin merged commit e83f728 into master Dec 6, 2017
@TBonnin TBonnin deleted the pcolley/facia_use_lite_fronts branch December 6, 2017 13:23
@prout-bot
Copy link
Collaborator

Seen on PROD (created by @QuarpT and merged by @TBonnin 14 minutes and 56 seconds ago)

@TBonnin
Copy link
Contributor

TBonnin commented Dec 6, 2017

Time spent by Facia to read json
screen shot 2017-12-06 at 17 26 38

Facia CPU
screen shot 2017-12-06 at 17 27 09

I'll let you guess what time we deployed this change at. 😁

@TBonnin
Copy link
Contributor

TBonnin commented Dec 7, 2017

And the median response time for Facia (excluding the internal redirects)
screen shot 2017-12-07 at 10 42 37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants