You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2016/09/09 11:05:52 UTC
incubator-eagle git commit: [minor] Refine default server
configuration
Repository: incubator-eagle
Updated Branches:
refs/heads/master 4ba634d55 -> 4e7c5f2b7
[minor] Refine default server configuration
Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/4e7c5f2b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/4e7c5f2b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/4e7c5f2b
Branch: refs/heads/master
Commit: 4e7c5f2b7c687f4994d6e8c98bec2ce0342246d7
Parents: 4ba634d
Author: Hao Chen <ha...@apache.org>
Authored: Fri Sep 9 19:01:06 2016 +0800
Committer: Hao Chen <ha...@apache.org>
Committed: Fri Sep 9 19:04:59 2016 +0800
----------------------------------------------------------------------
.../src/main/conf/application.conf | 114 -------------------
.../src/main/conf/configuration.yml | 21 ----
eagle-server-assembly/src/main/conf/eagle.conf | 114 +++++++++++++++++++
eagle-server-assembly/src/main/conf/server.yml | 34 ++++++
4 files changed, 148 insertions(+), 135 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/4e7c5f2b/eagle-server-assembly/src/main/conf/application.conf
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/application.conf b/eagle-server-assembly/src/main/conf/application.conf
deleted file mode 100644
index 0a3352e..0000000
--- a/eagle-server-assembly/src/main/conf/application.conf
+++ /dev/null
@@ -1,114 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# ---------------------------------------------
-# Eagle REST Web Service Configuration
-# ---------------------------------------------
-service {
- env = "testing"
- host = "localhost"
- port = 9090
- context = "/rest"
- timezone = "UTC"
-}
-
-# ---------------------------------------------
-# Eagle Deep Storage Configuration
-# ---------------------------------------------
-
-storage {
- # storage type: ["hbase","jdbc"]
- # default is "hbase"
- type = "hbase"
-
- hbase {
- # hbase configuration: hbase.zookeeper.quorum
- # default is "localhost"
- zookeeperQuorum = "localhost"
-
- # hbase configuration: hbase.zookeeper.property.clientPort
- # default is 2181
- zookeeperPropertyClientPort = 2181
-
- # hbase configuration: zookeeper.znode.parent
- # default is "/hbase"
- zookeeperZnodeParent = "/hbase-unsecure"
-
- # eagle web login profile: [sandbox, default]
- # default is sandbox
- tableNamePrefixedWithEnvironment = false
-
- # eagle coprocessor enabled or not: [true, false]
- # default is false
- coprocessorEnabled = false
- }
-}
-
-# ---------------------------------------------
-# Eagle Metadata Store Configuration
-# ---------------------------------------------
-metadata {
- store = org.apache.eagle.metadata.service.memory.MemoryMetadataStore
- jdbc {
- username = "root"
- password = ""
- driverClassName = com.mysql.jdbc.Driver
- url = "jdbc:mysql://server.eagle.apache.org:3306/eagle"
- }
-}
-
-# ---------------------------------------------
-# Eagle Application Configuration
-# ---------------------------------------------
-application {
- sink {
- type = org.apache.eagle.app.sink.KafkaStreamSink
- }
- storm {
- nimbusHost = "server.eagle.apache.org"
- nimbusThriftPort = 6627
- }
-}
-
-# ---------------------------------------------
-# Eagle Alert Engine Configuration
-# ---------------------------------------------
-
-# Coordinator Configuration
-coordinator {
- policiesPerBolt = 5
- boltParallelism = 5
- policyDefaultParallelism = 5
- boltLoadUpbound = 0.8
- topologyLoadUpbound = 0.8
- numOfAlertBoltsPerTopology = 5
- zkConfig {
- zkQuorum = "server.eagle.apache.org:2181"
- zkRoot = "/alert"
- zkSessionTimeoutMs = 10000
- connectionTimeoutMs = 10000
- zkRetryTimes = 3
- zkRetryInterval = 3000
- }
- metadataService {
- host = "localhost",
- port = 9090,
- context = "/rest"
- }
- metadataDynamicCheck {
- initDelayMillis = 1000
- delayMillis = 30000
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/4e7c5f2b/eagle-server-assembly/src/main/conf/configuration.yml
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/configuration.yml b/eagle-server-assembly/src/main/conf/configuration.yml
deleted file mode 100644
index c671ade..0000000
--- a/eagle-server-assembly/src/main/conf/configuration.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-server:
- applicationConnectors:
- - type: http
- port: 9090
- adminConnectors:
- - type: http
- port: 9091
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/4e7c5f2b/eagle-server-assembly/src/main/conf/eagle.conf
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/eagle.conf b/eagle-server-assembly/src/main/conf/eagle.conf
new file mode 100644
index 0000000..0a3352e
--- /dev/null
+++ b/eagle-server-assembly/src/main/conf/eagle.conf
@@ -0,0 +1,114 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# ---------------------------------------------
+# Eagle REST Web Service Configuration
+# ---------------------------------------------
+service {
+ env = "testing"
+ host = "localhost"
+ port = 9090
+ context = "/rest"
+ timezone = "UTC"
+}
+
+# ---------------------------------------------
+# Eagle Deep Storage Configuration
+# ---------------------------------------------
+
+storage {
+ # storage type: ["hbase","jdbc"]
+ # default is "hbase"
+ type = "hbase"
+
+ hbase {
+ # hbase configuration: hbase.zookeeper.quorum
+ # default is "localhost"
+ zookeeperQuorum = "localhost"
+
+ # hbase configuration: hbase.zookeeper.property.clientPort
+ # default is 2181
+ zookeeperPropertyClientPort = 2181
+
+ # hbase configuration: zookeeper.znode.parent
+ # default is "/hbase"
+ zookeeperZnodeParent = "/hbase-unsecure"
+
+ # eagle web login profile: [sandbox, default]
+ # default is sandbox
+ tableNamePrefixedWithEnvironment = false
+
+ # eagle coprocessor enabled or not: [true, false]
+ # default is false
+ coprocessorEnabled = false
+ }
+}
+
+# ---------------------------------------------
+# Eagle Metadata Store Configuration
+# ---------------------------------------------
+metadata {
+ store = org.apache.eagle.metadata.service.memory.MemoryMetadataStore
+ jdbc {
+ username = "root"
+ password = ""
+ driverClassName = com.mysql.jdbc.Driver
+ url = "jdbc:mysql://server.eagle.apache.org:3306/eagle"
+ }
+}
+
+# ---------------------------------------------
+# Eagle Application Configuration
+# ---------------------------------------------
+application {
+ sink {
+ type = org.apache.eagle.app.sink.KafkaStreamSink
+ }
+ storm {
+ nimbusHost = "server.eagle.apache.org"
+ nimbusThriftPort = 6627
+ }
+}
+
+# ---------------------------------------------
+# Eagle Alert Engine Configuration
+# ---------------------------------------------
+
+# Coordinator Configuration
+coordinator {
+ policiesPerBolt = 5
+ boltParallelism = 5
+ policyDefaultParallelism = 5
+ boltLoadUpbound = 0.8
+ topologyLoadUpbound = 0.8
+ numOfAlertBoltsPerTopology = 5
+ zkConfig {
+ zkQuorum = "server.eagle.apache.org:2181"
+ zkRoot = "/alert"
+ zkSessionTimeoutMs = 10000
+ connectionTimeoutMs = 10000
+ zkRetryTimes = 3
+ zkRetryInterval = 3000
+ }
+ metadataService {
+ host = "localhost",
+ port = 9090,
+ context = "/rest"
+ }
+ metadataDynamicCheck {
+ initDelayMillis = 1000
+ delayMillis = 30000
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/4e7c5f2b/eagle-server-assembly/src/main/conf/server.yml
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/server.yml b/eagle-server-assembly/src/main/conf/server.yml
new file mode 100644
index 0000000..8bea2c2
--- /dev/null
+++ b/eagle-server-assembly/src/main/conf/server.yml
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+server:
+ applicationConnectors:
+ - type: http
+ port: 9090
+ adminConnectors:
+ - type: http
+ port: 9091
+
+logging:
+ level: INFO
+ appenders:
+ - type: file
+ currentLogFilename: log/eagle-server.log
+ threshold: ALL
+ archive: true
+ archivedLogFilenamePattern: log/eagle-server-%d.log
+ archivedFileCount: 5
+ timeZone: UTC
+ logFormat: # TODO
\ No newline at end of file