Git Product home page Git Product logo

cbimax's People

Contributors

anhnongdan avatar baysao avatar

Watchers

 avatar

cbimax's Issues

[Deploy] v3.0.1 VT missed archive

At 06-29 11:12AM, latest Done Archiving! is at:
(19:40 ICT) - No error log showed

(/var/log/flow.log)

INFO [2017-06-28 12:40:06] Archived website id = 5232, 1 API requests, Time elapsed: 2.211s [1/1 done]
INFO [2017-06-28 12:40:06] Done archiving!
INFO [2017-06-28 12:40:06] ---------------------------
INFO [2017-06-28 12:40:06] SUMMARY
INFO [2017-06-28 12:40:06] Total visits for today across archived websites: 1077
INFO [2017-06-28 12:40:06] Archived today's reports for 1 websites
INFO [2017-06-28 12:40:06] Archived week/month/year for 1 websites

All subsequence archive can't finish:

INFO [2017-06-29 04:10:03] - Archiving was last executed without error 15 hours 29 min ago
INFO [2017-06-29 04:10:03] - Will only process the following periods: day (--force-periods)
INFO [2017-06-29 04:10:03] - Will process 1 websites (--force-idsites)
Done Archive
Thu Jun 29 11:10:03 ICT 2017: 2 seconds

[Sale request] Separate VNPT cbimax and FPT cbimax

  • Real time thu-put and DL-speed of cBimax is retrieved from the counter which receives both raw log from syslog-ng of both VNPT and FPT
    => QoS get the total Number for both

  • Piwik calculate both

=> All numbers are consistent.

Should we separate this or not?

[Deploy] v2.14 for K+ missed archive

Archive seems not to be running.

  • No log in /var/log/flow.log

  • Rotation and archiving halt:

| piwik_log_link_visit_action_2017_06_23_11_0  |
| piwik_log_link_visit_action_2017_06_23_11_10 |
| piwik_log_link_visit_action_2017_06_23_11_20 |
| piwik_log_link_visit_action_2017_06_23_11_30 |
| piwik_log_link_visit_action_2017_06_23_11_40 |
| piwik_log_link_visit_action_tracker

=> archive tables missed:

| piwik_archive_numeric_temp_2017_06_18 |
| piwik_archive_numeric_temp_2017_06_19 |
| piwik_archive_numeric_temp_2017_06_20 |
| piwik_archive_numeric_temp_2017_06_21 |
| piwik_archive_numeric_temp_2017_06_22 |
| piwik_archive_numeric_temp_2017_06_26 |
| piwik_archive_numeric_temp_2017_06_30 |
  • Count: piwik_log_link_visit_action_tracker: 409535, piwik_log_link_visit_action: 323031

  • Docker compose logs: pw instance log dominates, no log from db (and redis):

pw1_1     | Jun 30 06:39:01 VT-HNI-BIMAX-01 CRON[32541]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 06:46:47 VT-HNI-BIMAX-01 CRON[13391]: (CRON) info (No MTA installed, discarding output)
pw1_1     | Jun 30 07:09:01 VT-HNI-BIMAX-01 CRON[8970]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 07:17:01 VT-HNI-BIMAX-01 CRON[19972]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
pw1_1     | Jun 30 07:39:01 VT-HNI-BIMAX-01 CRON[17713]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 08:09:01 VT-HNI-BIMAX-01 CRON[26452]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 08:17:01 VT-HNI-BIMAX-01 CRON[5073]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
pw1_1     | Jun 30 08:39:01 VT-HNI-BIMAX-01 CRON[2839]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 09:09:01 VT-HNI-BIMAX-01 CRON[11562]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
pw1_1     | Jun 30 09:17:01 VT-HNI-BIMAX-01 CRON[22564]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

Piwik 3.0.4 can't connect to Redis

config:
[RedisCache] port = 6004
[QueuedTracking] queueEnabled = 1 redisPort = 6004 processDuringTrackingRequest = 1 numQueueWorkers = 32 numRequestsToProcess = 1

[RedisException]
Redis server went away

WARNING [2017-06-28 04:15:42] /usr/share/nginx/www/plugins/QueuedTracking/Queue/Backend/Redis.php(236): Warning - Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

[Deploy] cBimax can't import logs

  • PW5 queuetracking plugin works as normal but no log is imported (log_visit is empty).

  • Redis queue shows the normal log queue => Queued tracking is working normally.
    [root@VNPT-HNI-ANALYTIC-03 bimax]# ./flow.sh monitor 5
    Queue is enabled
    Request sets in the queue will be processed automatically after a tracking request
    Up to 32 workers will be used
    Processor will start once there are at least 1 request sets in the queue
    22 (1+2+0+0+0+1+0+0+0+1+1+2+0+0+1+1+0+0+2+3+0+1+1+1+0+1+0+1+0+0+2+0) request sets left in queue. 1.01M used memory (1.21M peak). 5 wo7 (0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+1+0+0+0+1+0+1+0+0+0+1+0+1+0+0+1+0) request sets left in queue. 917.48K used memory (1.21M peak). 5 w10 (0+0+1+0+0+0+0+0+0+0+1+0+0+0+1+2+0+0+0+0+1+1+0+1+0+0+0+1+0+0+0+1) request sets left in queue. 995.84K used memory (1.21M peak). 5 11 (1+1+0+0+2+1+0+1+0+0+2+0+0+1+0+0+0+0+0+0+1+0+0+0+0+1+0+0+0+0+0+0) request sets left in queue. 963.91K used memory (1.21M peak). 5 workers active.

!! Piwik warns about the config file:
The Piwik configuration file (config/config.ini.php) is not writable, some of your changes might not be saved. Please change permissions of the config file to make it writable.

[Deploy] PW5 of VNPT very laggy, unstable UI

Sometime, server returns 504, 404.

Overall UI is unresponsive, error show frequently:
Request with too much data...

Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Piwik administrator for assistance. 

Need more help? FAQ – Community Help – Professional Help.

Archiving inaccuracy - Visit Time suspected

Note:

  • 11h: 100 visits and 2250 hits - 2250 actions
  • 16H : 65 visit and 1250 hits
    => subtotal 165 and 3500 [!!! exactly]
  • 17H: 75 visits 1500 hits
    => 240 and 5000 [!!Yes]

Verify within an hour 03-02:

  • 10:07 = 1725 log lines (skip over, stop the import log) -> 129 visits 1778 hits

  • 10:38 = 3000 lines (run until stop) ->
    => subtotal: 244 visits and 4778 actions (Yes!!)

  • 10:57 = 1250 lines (run archive wrong and then invalidate and run again)
    => sub: 352 visits 6028 act (!!!YES YES)
    --- It seems that everything is fine on LOCAL, so why it's weird on Server.

  • 13:57: 5000 lines => 156 visits and 5000 action
    => total: 274+156=430?508 visit ||| 11028 act => It seems that
    So, actions count is very precise while Visit count is WRONG
    (Only visit per server time is wrong)

  • 14:57: 1000 lines => 75 visit and 1000 act
    total: 274+156+75=505 ?583 (=508+75) visits and 12028 act =>

  • 15:04 1250 lines

  • 15:11 750 lines

=> Run archive @ 15:17
Server time: 15h 86vts 2780 atc, [14h: 15vts, 220 action]
total: 594(~505 + 86) vts 13278 (12028 + 2780=14808) atc =>
(274+156+15+86 = 531)
[other plugins show total of 594]

=> Run archive @ 15:26
total: 669 vts, 14028 act => should be: 12028 + 1250 + 750 = 14028 action and count(*) log_visit 771.
Server time shows the same (274+156+15+86 = 531)
[other plugins show total of 669]

SO IT'S LIKELY THAT TIME PLUGIN HAS PROBLEM.

PW1 on VNPT is laggy

No error in nginx error log (on 4003).

why there's this error in log?
VNPT has no pw2 running

2017/07/14 23:21:02 [error] 9620#0: *1264 connect() failed (111: Connection refused) while connecting to upstream, client: 113.164.27.2, server: cdn.vnpt.bimax.tv, request: "GET //index.php?module=Installation&action=getEmptyPageForSystemCheck HTTP/1.1", upstream: "http://172.40.4.90:4002//index.php?module=Installation&action=getEmptyPageForSystemCheck", host: "cdn.vnpt.bimax.tv"
2017/07/14 23:25:43 [error] 9649#0: *1310 connect() failed (111: Connection refused) while connecting to upstream, client: 113.164.27.2, server: cdn.vnpt.bimax.tv, request: "GET //index.php?module=Installation&action=getEmptyPageForSystemCheck HTTP/1.1", upstream: "http://172.40.4.90:4002//index.php?module=Installation&action=getEmptyPageForSystemCheck", host: "cdn.vnpt.bimax.tv"

Verify RANGE data request

Some reports on UI show error when request data with wide date-range setup.

  • When request data for RollUp with date range before some of site was created.
  • Request data for more than a week range.

+ Need to try other cases.

QoS for Rollup - Problem occurs: RollUp require Super User to retrieve RollUps

VT PW4 on 249 real-time plugin doesn't work

Both realtime visitor of Piwik and QoS don't work.
And archive actually doesn't work as well.

Archive only calculate the first window (10 mins) and then the log is rotated without calculating.

Upgrade pw instance returns 404

  • pw3 on viettel cdn some time returns 404.
    After recover, Web UI is very unresponsive.

Mem and CPU consumption:

bimax_db3_1 OK - cpu=10.71% mem=10.67% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_db4_1 OK - cpu=108.34% mem=10.73% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_db5_1 OK - cpu=2.24% mem=10.24% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_db7_1 OK - cpu=18.31% mem=10.56% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_db_3 OK - tracker=110099 action=66437023 Reschedule an immediate check of the 'Check_MK' service 2017-03-29 16:52:57 41 sec
OK bimax_db_4 OK - tracker=228608 action=8593197 Reschedule an immediate check of the 'Check_MK' service 2017-03-21 15:56:17 41 sec
OK bimax_db_5 OK - tracker=7077 action=397155 Reschedule an immediate check of the 'Check_MK' service 2017-03-21 15:56:17 41 sec
OK bimax_db_7 OK - tracker=68265 action=1388137 Reschedule an immediate check of the 'Check_MK' service 2017-03-29 14:47:57 41 sec
OK bimax_pw3_1 OK - cpu=57.42% mem=1.19% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_pw4_1 OK - cpu=184.67% mem=0.82% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_pw5_1 OK - cpu=125.41% mem=1.56% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_pw7_1 OK - cpu=35.40% mem=0.68% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_redis3_1 OK - cpu=4.05% mem=0.03% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_redis4_1 OK - cpu=23.21% mem=0.07% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_redis5_1 OK - cpu=0.08% mem=0.04% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec
OK bimax_redis7_1 OK - cpu=0.59% mem=0.03% Reschedule an immediate check of the 'Check_MK' service 2017-03-30 15:23:57 41 sec

Frontend displayed Metrics

For CDN: no more pageview, donwload, search, outlink, etc.
Bounce rate is not relevant to

=> Get rid of all these irrelevant metrics.

[Archive] K+ CDN calculation's differences on 2 servers

  • Hits counts are match closely
  • BW has diff ~ 5%
  • Visit counts diff ~ 25%

All CDNs dashboard (Total: 2,933 sessions, 1,530,371 hits, 603.24 G tranffered overall)
All CDNs dashboard (Total: 3,826 sessions, 1,493,011 hits, 570.71 G tranffered overall)

ott-vnpt.kplus.vn | 1,443 | 554,483 | 213.28G
ott-vnpt.kplus.vn | 1,764 | 531,663 | 203.98 G

kplusupstream.local | 1,211 | 771,707 | 355.62 G
kplusupstream.local | 1,635 | 741,141 | 335.97 G

ott-fpt.kplus.vn | 165 | 40,055 | 8.86 G
ott-fpt.kplus.vn | 239 | 42,487 | 8.5 G

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.