forked from odenny/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
4,140 additions
and
1,301 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,73 @@ | ||
#创建seed表 | ||
CREATE TABLE `TB_DATA_SEED` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`VALUE` bigint(11) DEFAULT NULL, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8; | ||
|
||
#创建app表 | ||
CREATE TABLE `TB_PARA_APP` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`NAME` varchar(100) DEFAULT NULL, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8; | ||
|
||
#创建service表 | ||
CREATE TABLE `TB_PARA_SERVICE` ( | ||
`ID` varchar(6) NOT NULL, | ||
`NAME` varchar(100) DEFAULT NULL, | ||
`APP_ID` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`ID`), | ||
KEY `fk_appId` (`APP_ID`), | ||
CONSTRAINT `fk_appId` FOREIGN KEY (`APP_ID`) REFERENCES `TB_PARA_APP` (`ID`) ON DELETE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
#创建serviceId生成策略表 | ||
CREATE TABLE `TB_PARA_SERVICE_ID_GEN` ( | ||
`MAX_ID` int(11) NOT NULL, | ||
`HEAD` int(11) NOT NULL, | ||
`MAX_HEAD` int(11) NOT NULL, | ||
`ID_SCOPE` int(11) NOT NULL, | ||
PRIMARY KEY (`MAX_ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
#初始化生成策略数据,serviceId由head+max_id两部分组成max_id和head分别自增。 | ||
#head自增至26之后重置为0(为了配合hbase分区策略,hbase分多少个区,则max_head为多少) | ||
#max_id自增值9999后后重置为0 | ||
INSERT INTO `TB_PARA_SERVICE_ID_GEN` VALUES (0, 0, 26, 10000); | ||
|
||
#annotation | ||
CREATE TABLE `annotation` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`k` varchar(128) DEFAULT NULL, | ||
`value` varchar(2048) DEFAULT NULL, | ||
`ip` varchar(45) DEFAULT NULL, | ||
`port` varchar(11) DEFAULT NULL, | ||
`timestamp` bigint(20) DEFAULT NULL, | ||
`duration` int(11) DEFAULT NULL, | ||
`spanId` bigint(128) DEFAULT NULL, | ||
`traceId` bigint(128) DEFAULT NULL, | ||
`service` varchar(128) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=217122 DEFAULT CHARSET=utf8; | ||
|
||
#span | ||
CREATE TABLE `span` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`name` varchar(128) DEFAULT NULL, | ||
`traceId` bigint(20) DEFAULT NULL, | ||
`parentId` bigint(20) DEFAULT NULL, | ||
`spanId` bigint(20) DEFAULT NULL, | ||
`service` varchar(128) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=53365 DEFAULT CHARSET=utf8; | ||
|
||
#trace | ||
CREATE TABLE `trace` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`traceId` bigint(128) DEFAULT NULL, | ||
`duration` int(11) DEFAULT NULL, | ||
`service` varchar(1024) CHARACTER SET utf8 DEFAULT NULL, | ||
`time` bigint(20) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=16924 DEFAULT CHARSET=utf8; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
38 changes: 38 additions & 0 deletions
38
modules/hydra-collector-service/src/main/resources/assembly/assembly.xml
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,38 @@ | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | ||
<id>jd</id> | ||
<formats> | ||
<format>dir</format> | ||
<format>tar.gz</format> | ||
</formats> | ||
<includeBaseDirectory>true</includeBaseDirectory> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
<useProjectArtifact>false</useProjectArtifact> | ||
<useProjectAttachments>true</useProjectAttachments> | ||
</dependencySet> | ||
</dependencySets> | ||
<fileSets> | ||
<fileSet> | ||
<directory>/src/main/resources</directory> | ||
<outputDirectory>/conf</outputDirectory> | ||
<fileMode>0755</fileMode> | ||
<includes> | ||
<include>**.**</include> | ||
</includes> | ||
<excludes> | ||
<exclude>/assembly</exclude> | ||
<exclude>/scripts</exclude> | ||
</excludes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>/src/main/resources/scripts</directory> | ||
<outputDirectory>/bin</outputDirectory> | ||
<includes> | ||
<include>*.*</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
4 changes: 4 additions & 0 deletions
4
modules/hydra-collector-service/src/main/resources/conf.properties
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,4 @@ | ||
metaq.zk.address=192.168.200.110:2181 | ||
metaq.topic=hydra_test | ||
|
||
metaq.consumer.maxDelayFetchTimeInMills=100 |
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
Oops, something went wrong.