This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_9_0
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9_0 by this push:
     new 5088b76  SOLR-16054: Better documentation of solr.environment property 
(#701)
5088b76 is described below

commit 5088b76ccff61768ee58b7b3e9427d34b4a2f186
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Mar 3 11:29:53 2022 +0100

    SOLR-16054: Better documentation of solr.environment property (#701)
    
    (cherry picked from commit 0cf21d2fe5762517821cd29d649a0584b75c5b1b)
---
 .../deployment-guide/pages/taking-solr-to-production.adoc     | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
 
b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
index fe09c59..34f8074 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
@@ -307,15 +307,16 @@ Setting the hostname of the Solr server is recommended, 
especially when running
 
 To guard against accidentally doing changes to the wrong cluster, you may 
configure a visual indication in the Admin UI of whether you currently work 
with a production environment or not.
 To do this, edit your `solr.in.sh` or `solr.in.cmd` file with a 
`-Dsolr.environment=prod` setting, or set the cluster property named 
`environment`.
-To specify label and/or color, use a comma-delimited format as below.
+Allowed values are `dev`, `test`, `stage` or `prod`. Each of these have 
default labels and colors predefined.
+To specify label and/or color, use a comma-delimited format as below. Label 
has to be defined before color.
 The `+` character can be used instead of space to avoid quoting.
 Colors may be valid CSS colors or numeric, e.g., `#ff0000` for bright red.
 Examples of valid environment configs:
 
-* `prod`
-* `test,label=Functional+test`
-* `dev,label=MyDev,color=blue`
-* `dev,color=blue`
+* `prod` (default label is 'Production', default color is a tone of red)
+* `test,label=Functional+test` (default color will remain yellow, but override 
the label)
+* `dev,label=MyDev,color=blue` (override both label and color by name)
+* `stage,color=#ff8888` (customize color with code)
 
 === Override Settings in solrconfig.xml
 

Reply via email to