generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Varnish helper commands. * Update README with information on Varnish helper commands. --------- Co-authored-by: tyler36 <7234392+tyler36@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Varnish-cli | ||
## Usage: varnishd [flags] [args] | ||
## Example: "ddev varnishd -d" for CLI in foreground. | ||
## Example: "ddev varnishd -T" to connect with varnishadm or telnet. | ||
## Example: "ddev varnishd -M" to connect back to a listening service pushing the CLI to that service. | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishd "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Display Varnish request histogram | ||
## Usage: varnishhist [flags] [args] | ||
## Example: "ddev varnishhist" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishhist "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Display Varnish logs | ||
## Usage: varnishlog [flags] [args] | ||
## Example: "ddev varnishlog" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishlog "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Display Varnish logs in Apache / NCSA combined log format | ||
## Usage: varnishncsa [flags] [args] | ||
## Example: "ddev varnishncsa" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishncsa "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Display Varnish Cache statistics | ||
## Usage: varnishstat [flags] [args] | ||
## Example: "ddev varnishstat" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishstat "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Test program for Varnish | ||
## Usage: varnishtest [flags] [args] | ||
## Example: "ddev varnishtest" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishtest "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Display Varnish log entry ranking | ||
## Usage: varnishtop [flags] [args] | ||
## Example: "ddev varnishtop" | ||
|
||
# This example runs inside the varnish container. | ||
# Note that this requires that /mnt/ddev_config be mounted | ||
# into the varnish container. | ||
|
||
varnishtop "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters