Fetch the repository succeeded.
This action will force synchronization from sxfad/porter, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
Porter始于2017年,提供数据同步功能,但并不仅仅局限于数据同步,在随行付内部广泛使用。主要提供一下功能:
git clone https://github.com/sxfad/porter.git
cd porter
git checkout 版本
gradle build
从build/distributions目录查找安装包
porter.id=节点编号,在集群中唯一
#集群配置
porter.cluster.strategy=ZOOKEEPER
porter.cluster.client.url=127.0.0.1:2181
porter.cluster.client.sessionTimeout=100000
#统计指标数据上传目标端链接信息,与manager-cluster搭配使用,当上传到zookeeper时,manager-cluster无需部署。
porter.cluster.statistic.sourceType=KAFKA_PRODUCE
porter.cluster.statistic.servers=127.0.0.1:9200
porter.cluster.statistic.topic=你的kafka主题
#单机配置
porter.cluster.strategy=STANDALONE
porter.cluster.client.home=./.porter
tar zxvf build/distributions/porter-boot-版本.tar
porter-boot-版本/bin/porter-boot
porter-boot-版本/bin/porter-boot debug 端口号
porter-boot-版本/bin/porter-boot --spring.profiles.active=运行环境
porter-boot-版本/bin/shutdown.sh
当porter-boot因jvm crash、kill -9强杀进程等原因造成节点、任务没有正常退出,再次启动porter-boot不成功、任务无法分配时使用。
通过porter-boot的http接口http://ip:端口/inspect/node/info 查看参数"forceAssign"判断是否处于强制启动状态
porter-boot-版本/bin/porter-boot --force
管理后台默认地址: http://127.0.0.1:8081
管理后台默认账户密码: admin admin
Sign in for post a comment
Comment ( 0 )