autodetect

package
v3.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package autodetect looks at the system configuration and file names and tries to guess at the correct configuration

package autodetect looks at the system configuration and file names and tries to guess at the correct configuration

package autodetect looks at the system configuration and file names and tries to guess at the correct configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGCLogLocation

func FindGCLogLocation(hook shutdown.Hook, pid int) (gcLogPattern string, gcLogLoc string, err error)

FindGCLogLocation retrieves the gc log location from ps eww <pid> output

func GetDremioPID

func GetDremioPID(hook shutdown.Hook) (int, error)

GetDremioPID calls ps aux and finds the DremioDaemon (filtering out the preview engine)

func GetDremioPIDFromText

func GetDremioPIDFromText(psOutput string) (int, error)

GetDremioPIDFromText takes the ouput from "ps aux | grep DremioDaemon | grep -v grep | grep -v /etc/dremio/preview" and retrieves the pid

func IsAWSECoordinator

func IsAWSECoordinator() (bool, string, error)

func IsAWSEExecutor

func IsAWSEExecutor(nodeName string) (bool, error)

func IsAWSEExecutorUsingDir

func IsAWSEExecutorUsingDir(efsFolder, nodeName string) (bool, error)

func IsAWSEfromLogDirs

func IsAWSEfromLogDirs() (bool, error)

func ParseGCLogFromFlags

func ParseGCLogFromFlags(startupFlagsStr string) (logRegex string, gcLogLocation string, err error)

ParseGCLogFromFlags takes a given string with java startup flags and finds the gclog directive

func ParseGCLogFromFlagsPost25

func ParseGCLogFromFlagsPost25(startupFlagsStr string) (logRegex string, gcLogLocation string, err error)

ParseGCLogFromFlags takes a given string with java startup flags and finds the gclog directive

func ParseGCLogFromFlagsPre25

func ParseGCLogFromFlagsPre25(startupFlagsStr string) (logRegex string, gcLogLocation string, err error)

ParseGCLogFromFlags takes a given string with java startup flags and finds the gclog directive

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL