Projet

Général

Profil

Révision 7041db39

ID7041db3964d4e35fb5ad9c68bdb9279820a94c7f
Parent de86866b
Enfant 50cb217c

Ajouté par Ingo Oppermann il y a plus de 10 ans

Fix hit rate calculation

In varnish4, purges are counted as client_req but not as hit or miss anymore.
This fix recalculates client_req based on cache_(hit|miss|hitpass).

Voir les différences:

plugins/varnish4/varnish4_
238 238
			'client_req' => {
239 239
				'type' => 'DERIVE',
240 240
				'min' => '0',
241
				'graph' => 'off'
241
				'graph' => 'off',
242
				'rpn' => [ 'cache_hit' , 'cache_miss' , 'cache_hitpass' , '+' , '+' ]
242 243
			},
243 244
			'cache_hit' => {
244 245
				'type' => 'DERIVE',

Formats disponibles : Unified diff