]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: print is_laggy message once 24138/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sun, 2 Sep 2018 01:47:18 +0000 (18:47 -0700)
committerPrashant D <pdhange@redhat.com>
Tue, 18 Sep 2018 02:03:12 +0000 (22:03 -0400)
commit4c7b6b4a980dddd20ffb51d958809d369709e055
treeb2c7fe20ee98c54e414662f91168037abbbbb3bf
parent16a09637bae9bf8c36e329ae8a6ae2e2d3fa5436
mds: print is_laggy message once

Beacon::is_laggy gets called frequently which causes the debug log to get
spammed with messages.

Steps to reproduce:
- setup vstart cluster
- start IO from client (e.g. `cp -av /usr /mnt`)
- find connection to mon by the mds
  $ ss -tnp | grep ceph-mds
    ...
    ESTAB      0      0      127.0.0.1:58988              127.0.0.1:40928               users:(("ceph-mds",pid=13095,fd=37))
- block the connection using iptables on the MDS node:
  $ sudo iptables -I INPUT -p tcp --sport 58988 --dport 40928 -j DROP
- verify MDS log using:
  $ tail -f mds.a.log | grep beacon
    ...
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.784 7f2905a97700  5 mds.beacon.a Sending beacon up:active seq 114
    2018-09-05 19:21:05.784 7f2905a97700  1 -- 127.0.0.1:6813/2277776624 --> 127.0.0.1:40929/0 -- mdsbeacon(14162/a up:active seq 114 v7) v7 -- 0x7d1e7e2a80 con 0
    2018-09-05 19:21:05.784 7f2905a97700 20 mds.beacon.a sender thread waiting interval 4s

Fixes: http://tracker.ceph.com/issues/35250
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 439902311910f9c239f48c0958fd95fa5839e309)

Conflicts:
src/mds/Beacon.cc: Resovled for laggy, changed to was_laggy
src/mds/Beacon.cc