Skip to content

Commit

Permalink
Merge pull request #3 from shashankg/manager
Browse files Browse the repository at this point in the history
Fabric Manager
  • Loading branch information
shaikidris authored Nov 4, 2016
2 parents 2d68b2c + 5f7f5b3 commit 4e8dc79
Show file tree
Hide file tree
Showing 89 changed files with 7,701 additions and 5 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,22 @@ End to end latency to process all messages in seconds (ceiling) averaged over mu

Throughput with best configuration T ~ 166666 events / second<br>

NOTE: Using Disruptor with YieldWaitingStategy instead of LBQ for channel communication actually reduced the throughput<br>
NOTE: Using Disruptor with YieldWaitingStrategy instead of LBQ for channel communication actually reduced the throughput<br>

###Using Processor Maven Archetype

To create a processor project, please run following command -

```
mvn archetype:generate -DarchetypeGroupId=com.olacabs.fabric -DarchetypeArtifactId=fabric-processor-archetype -DarchetypeVersion=0.0.1-SNAPSHOT -DartifactId=<artifact_id_of_your_project> -DgroupId=<group_id_of_your_project> -DinteractiveMode=ture
```
Example -

```
mvn archetype:generate -DarchetypeGroupId=com.olacabs.fabric -DarchetypeArtifactId=fabric-processor-archetype -DarchetypeVersion=0.0.1-SNAPSHOT -DartifactId=fabric-my-processor -DgroupId=com.olacabs.fabric -DinteractiveMode=ture
```
What it does -
- Creates the pom project for the processor with all the updated version of compute and other related jars.
- Creates boiler plate code, with example, for scheduled and stream processor. You can modify the example java file as per your need.


36 changes: 36 additions & 0 deletions fabric-manager/DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#Copyright 2016 ANI Technologies Pvt. Ltd.
#
#Licensed 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.

FROM ubuntu:14.04
MAINTAINER [email protected]

RUN apt-get update --fix-missing \
&& apt-get install -y --no-install-recommends software-properties-common \
&& add-apt-repository ppa:webupd8team/java \
&& gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
&& apt-get update \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-get install -y --no-install-recommends oracle-java8-installer \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

EXPOSE 17000

VOLUME /var/log/fabric-manager

COPY target/fabric-manager*.jar fabric-manager.jar
COPY target/classes/docker-compose-config.yml docker-compose-config.yml

CMD sh -c "sleep 20 ; java -jar -Xms${JAVA_PROCESS_MIN_HEAP} -Xmx${JAVA_PROCESS_MAX_HEAP} -XX:+${GC_ALGO} -Dfile.encoding=utf-8 fabric-manager.jar server ${CONFIG_ENV}-config.yml"
Loading

0 comments on commit 4e8dc79

Please sign in to comment.