1. 15 May, 2013 9 commits
    • Martin Blix Grydeland's avatar
      Make the VSC types a tbl defined list, with descriptions. · 87c20ed8
      Martin Blix Grydeland authored
      Add global variables for the type name strings.
      
      Compile in static VSC type descriptions in libvarnishapi
      87c20ed8
    • Martin Blix Grydeland's avatar
      Various VSC/varnishstat changes · 3a54afe5
      Martin Blix Grydeland authored
      Don't do automagic reopening in VSC
      
      Rename vf variables to fantom
      
      Keep a list of fantoms for the points, and point the points to
      these. This gets rid of the fantom struct on each point, and allows
      for StillValid checking on groups at a time instead for each point.
      
      Rename point's class to type to be consistent with VSM terminology
      
      More class->type renames
      
      Drop the type and ident pointers from VSC_point, and use the fantom's
      pointers instead.
      
      Reenable building of varnishstat
      
      Don't assert on VSM file closed in VSC_Iter. It's safe to proceed
      anyways and will produce a zero result in that case. This makes the
      function consistent with how the other functions behave.
      3a54afe5
    • Martin Blix Grydeland's avatar
      Various VSM changes · 23f828a7
      Martin Blix Grydeland authored
      Rename VSM_FOREACH_SAFE as it isn't really safe in the vqueue sense,
      and removing chunks from the VSM from the client library isn't
      applicable anyway.
      
      Make the VSM chunk marker sizes defines.
      
      Check for shm open in VSM__itern
      
      Revisit logic of VSM__itern: Make sure that the VSM_fantom is either
      changed to the next, or not changed at all.
      
      Add comments.
      
      Keep copies of class, type and ident in VSM_fantom, and use these when
      revalidating fantoms.
      
      Do a proper VSM_Open in varnishstat
      
      Add a VSM_ResetError function
      
      Differentiate between missing HEAD marker and zero alloc sequence. The
      latter is an indication Varnish isn't running, the former a corrupt
      file.
      
      Fix newline on diag messages for consistency.
      
      Fix return value check inversion bug on stat call in VSM_Abandoned()
      
      Don't assert on VSM_Open on an already open VSM. Report success instead.
      23f828a7
    • Martin Blix Grydeland's avatar
      162a06ea
    • Martin Blix Grydeland's avatar
      Keep an age counter in VSM_Head that will show the age of this SHM · d9f7cd52
      Martin Blix Grydeland authored
      segment.
      
      The API will use this counter to check for abandonment.
      
      Make use of the SHM age attribute in VSM_Abandoned.
      
      This gives a less expensive way (without doing stat syscall) to check
      for abandonment. If there's been more than 2 seconds between calls to
      VSM_Abandoned and the age attribute hasn't changed in between, the
      stat on the file will be performed to see if the SHM file has changed.
      
      VSM_Abandoned will be the standard way to check for SHM changes in API
      utilities, and when it returns true, the application is supposed to
      call VSM_Close and then VSM_Open to reopen the SHM file.
      
      Update Makefile.am in various places for build
      d9f7cd52
    • Martin Blix Grydeland's avatar
      Add SLT_Begin records at start of every new vxid transaction. · b3a461f3
      Martin Blix Grydeland authored
      Format: <type> <parent-vxid>
      
      Add SLT_End records at the end of all vxid transactions.
      
      Add SLT_Link records whenever one initiates a new child transation.
      Format: <type-of-child> <child-vxid>
      
      This is used by VSL api to form structured log output.
      b3a461f3
    • Martin Blix Grydeland's avatar
    • Martin Blix Grydeland's avatar
      Add management shared memory counters. Add MGT.uptime management · eeef8c2b
      Martin Blix Grydeland authored
      process uptime counter.
      eeef8c2b
    • Per Buer's avatar
      Make the reason phrase optional. · bcdf4f12
      Per Buer authored
      Basically the backend can drop the reason (OK) when responding to
      a probe without Varnish declaring the backend sick.
      Reported by astrosti on https://www.varnish-cache.org/forum/topic/961
      bcdf4f12
  2. 14 May, 2013 2 commits
  3. 13 May, 2013 6 commits
  4. 12 May, 2013 2 commits
  5. 08 May, 2013 1 commit
  6. 07 May, 2013 3 commits
  7. 06 May, 2013 12 commits
  8. 04 May, 2013 3 commits
  9. 03 May, 2013 2 commits