avoid logs in tmp folder
This commit is contained in:
parent
dc13e7ca90
commit
ddd5521de2
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func buildFilerStartupScript(m *seaweedv1.Seaweed) string {
|
func buildFilerStartupScript(m *seaweedv1.Seaweed) string {
|
||||||
commands := []string{"weed", "filer"}
|
commands := []string{"weed", "-logtostderr=true", "filer"}
|
||||||
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort))
|
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort))
|
||||||
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer.%s", m.Name, m.Namespace))
|
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer.%s", m.Name, m.Namespace))
|
||||||
commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m)))
|
commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m)))
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func buildMasterStartupScript(m *seaweedv1.Seaweed) string {
|
func buildMasterStartupScript(m *seaweedv1.Seaweed) string {
|
||||||
command := []string{"weed", "master"}
|
command := []string{"weed", "-logtostderr=true", "master"}
|
||||||
spec := m.Spec.Master
|
spec := m.Spec.Master
|
||||||
if spec.VolumePreallocate != nil && *spec.VolumePreallocate {
|
if spec.VolumePreallocate != nil && *spec.VolumePreallocate {
|
||||||
command = append(command, "-volumePreallocate")
|
command = append(command, "-volumePreallocate")
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string {
|
func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string {
|
||||||
commands := []string{"weed", "volume"}
|
commands := []string{"weed", "-logtostderr=true", "volume"}
|
||||||
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort))
|
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort))
|
||||||
commands = append(commands, "-max=0")
|
commands = append(commands, "-max=0")
|
||||||
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace))
|
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace))
|
||||||
|
|
Loading…
Reference in New Issue