Giter Club home page Giter Club logo

Comments (4)

kranian avatar kranian commented on June 3, 2024

소스를 확인해 보니깐 offset1과 offset2 는 XLOG를 가져오기 위한 간격 설정 파라미터가 맞습니다.
처음 API로 데이터를 가져올때는 초기값으로 해당 파라미터가 offset1=0,offset2=0으로 설정 후 응답 값에서 offset1,offset2를 다음 데이터를 가져오는 파라미터로 설정 합니다.

참고 소스 라인)

간단 하게는 정상과 비정상 출력되는 스카우터 버전을 비교 해주세요. 추가적으로 비정상 적으로 나오는 일부 서버에서의 서버 시간 설정을 확인주시고요

from scouter-paper.

rornfdlek avatar rornfdlek commented on June 3, 2024

답변 감사합니다.
정상과 비정상 출력되는 스카우터 버전은 같고 서버시간 설정도 동일하게 잘 되어 있습니다..
혹시 API의 result로 가져오는 offset1, offset2 이 정확히 각각 어떤 의미인지 알 수 있을까요?
offset1 : xlog loop / offset2 : xlog index
이렇게 나와 있는데, 조금 더 설명해주시면 감사하겠습니다ㅜㅜ
offset1을 아예 0으로 고정하면 문제가 해결이 되는 경우가 있는데 이래도 되는 건가 해서요..

from scouter-paper.

kranian avatar kranian commented on June 3, 2024

답답하시겠지만 잠시만 기달려주세요. @gunlee01 건희님 ㅎㅎ 이거 설명 부탁드려도 될까요??

from scouter-paper.

gunlee01 avatar gunlee01 commented on June 3, 2024

페이퍼의 리얼타임 XLOG는 최근 10분(또는 설정에 따라 5분)의 데이터를 표현해 줍니다.
해당 페이지 접근시 현재 시간부터 10분이전까지의 과거의 데이터를 서버에서 조회하여 표현하는데
무제한 건수를 가져오는 건 아니고 서버 부하 / 브라우저 부하를 고려하여 최근 10,000건의 XLOG만 가져와서 표현해 줍니다.
(1000TPS만 되어도 최근 10분이면 10006010 = 600,000 건의 데이터의 조회가 필요합니다.)
그 이후에는 수초간 수집된 데이터를 지속적으로 조회해 기존 데이터에 Append 하여 화면에 보여주는 방식입니다.
가져온 데이터의 이후 데이터를 가져오기 위해 이전 요청에서 응답받은 offset1, offset2를 스카우터로 전송합니다.
offset값은 스카우터 서버에서 xlog를 관리하는 저장소의 offset 값입니다.

조금 불편하겠지만 자주 페이지를 이동한다면 실시간 XLOG를 보여주는 브라우저는 유지하고 창을 하나 더 띠워서 사용하시는 것을 권장드립니다.

from scouter-paper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.