Commit 6f25240d authored by zhangxin10's avatar zhangxin10
Browse files

从Git切换到Github

parent 78befc0e
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash

SW_PREFIX="${SW_SERVER_BIN}/.."
SW_LOG_DIR="${SW_SERVER_BIN}/../log"
SW_CFG_DIR="${SW_SERVER_BIN}/../config"

#设置Java home
if [ "$JAVA_HOME" != "" ]; then
  JAVA="$JAVA_HOME/bin/java"
else
  JAVA=java
fi

CLASSPATH="$SW_CFG_DIR:$CLASSPATH"

for i in "${SW_SERVER_BIN}"/lib/*.jar
do
    CLASSPATH="$i:$CLASSPATH"
done

if $cygwin
then
    CLASSPATH=`cygpath -wp "$CLASSPATH"`
fi

echo "CLASSPATH=$CLASSPATH"
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash

# use POSTIX interface, symlink is followed automatically
SW_SERVER_BIN="${BASH_SOURCE-$0}"
SW_SERVER_BIN="$(dirname "${SW_SERVER_BIN}")"
SW_SERVER_BIN="$(cd "${SW_SERVER_BIN}"; pwd)"

# 设置Skywalking的目录基本信息
. "SW_SERVER_BIN/swEnv.sh"

+35 −0
Original line number Diff line number Diff line
#采集服务器的端口
server.port=34000

#最大数据缓存线程数量
buffer.max_thread_number=1
#每个线程最大缓存数量
buffer.per_thread_max_buffer_number=1024
#无数据处理时轮询等待时间(单位:毫秒)
buffer.max_wait_time=5000
#数据冲突时等待时间(单位:毫秒)
buffer.data_conflict_wait_time=10
#数据缓存文件目录
buffer.data_buffer_file_parent_directory=D:/test-data/data/buffer
#缓存数据文件最大长度(单位:byte)
buffer.data_file_max_length=10240
#每次Flush的缓存数据的个数
buffer.flush_number_of_cache=30

#最大持久化的线程数量
persistence.max_thread_number=1
#定位文件时,每次读取偏移量跳过大小
persistence.offset_file_skip_length=2048
#每次读取文件偏移量大小
persistence.offset_file_read_buffer_size=2048
#处理文件完成之后,等待时间(单位:毫秒)
persistence.switch_file_wait_time=5000

#偏移量注册文件的目录
registerpersistence.register_file_parent_directory=D:/test-data/data/offset
#偏移量注册文件名
registerpersistence.register_file_name=offset.txt
#偏移量注册备份文件名
registerpersistence.register_bak_file_name=offset.txt.bak
#偏移量写入文件等待周期(单位:毫秒)
registerpersistence.offset_written_file_wait_cycle=5000
 No newline at end of file
+13 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Root level="debug">
            <AppenderRef ref="Console"/>
        </Root>
    </Loggers>
</Configuration>
 No newline at end of file
+79 −0
Original line number Diff line number Diff line
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.ai.cloud</groupId>
    <artifactId>skywalking-server</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>skywalking-server</name>
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.4.1</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.basedir}/installer/config</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/resources</directory>
                                    <filtering>false</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <outputDirectory>${project.basedir}/installer/lib</outputDirectory>
                    <excludeTransitive>false</excludeTransitive>
                    <stripVersion>true</stripVersion>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
Loading