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

Allow ServiceInsight to connect to scaled out instances of ServiceControl #773

Closed
wants to merge 6 commits into from

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Jan 30, 2018

Replaces #737

Connects to #774

The PR contains the following changes:

  • Removes SI opinionated way of paging and lets it just follow the predefined paging links that are returned by Service Control
  • Removes the PageCount from the paging

Paging

SC generates Link header which contains up to 4 links: next, prev, first and last. These are used, instead of generating the links in SI, to page through the data.

The main benefit is making SI not dependent on the actual paging URL format of SC. The SI only needs to know how to initiate the search.

The actual goal is to be able to insert an intermediary between SI and SC. That intermediary could aggregate the results from multiple instances of SC without SI even knowing about its existence.

Page Count

As part of the TF work of extending SC with the multi instance mode for audits we discovered that the page count is not possible to determine upfront by doing a simple calculation based on the assumed page size. Since we went from a simplified paging approach in contrast to keep the offsets per SC instance each page can return up to numberOfInstance * page_size worth of data. Audits cannot be assumed to be uniformly distributed. Based on that we figured having a page size visible at all time makes no sense. The ability to page through the data is more important than knowing how many pages there are.

SzymonPobiega and others added 6 commits January 30, 2018 15:28
Fixed compilation.

Fixed xaml binding for Search

Fixed enabling/disabling refresh button
…on, default page size is only used in case SC doesn't return anything, NavigateToPage doesn't need to use the current page index anymore
@danielmarbach danielmarbach requested a review from a team January 30, 2018 14:29
@danielmarbach danielmarbach changed the title Link driven paging Allow ServiceInsight to connect to scaled out instances of ServiceControl Jan 30, 2018
@adamralph adamralph removed the Feature label Jan 30, 2018
@adamralph
Copy link
Member

Replaced by #775

@adamralph adamralph closed this Jan 31, 2018
@adamralph adamralph deleted the link-driven-paging-beautiful branch January 31, 2018 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants