varnish / libvmod-rtstatus

Varnish realtime status page.
Other
37 stars 16 forks source link

Move away from VRT_r_server_identity #25

Open gquintard opened 8 years ago

gquintard commented 8 years ago

In master and 4.1, we use VRT_r_server_identity to tell VSM_Open what instance is to be opened. The problem is that VRT_r_server_identity will return heritage.identity if -i is set, or heritage.name otherwise.

So rtstatus won't work with -i. The quick fix is adding a VRT function in Varnish to return heritage.name. The right fix would be to avoid VSM_Open altogether and have a vrt function returning the iterator directly.

ingvarha commented 7 years ago

Kind of workaround until this is fixed: Call varnishd with -i somename AND -n somename, and make sure the two are identical.

(Of course, this might not suit your actual needs.)

Ingvar