jproxy introduction
jproxy http proxy made by java built by netty v4.0, you can visit real server's address via jproxy's address,just like squid,zproxy ect...
###jproxy's directory structure jproxy's directory just like tomcat's or jmeter's
startup
shell, you can also use startup /etc/jproxy/config.json
to run this application by custom configuration file(it must be named as config.json
)jproxy use memory to store http's post and get data(especially json, form multipart data ect...). jproxy's cache module depend on redis.it can also save static resources such as html, css,js,and other image file. but now I shutdown the static resource storage because it has some bug on resolve resource's contentType. mayme someday I could figure it out... ####load balance
config.json
one by one and again,you can set the filed proxy_pass
like this: "proxy_pass":[
{
"host":"localhost",
"port":8080,
"weight":1
},
{
"host":"localhost",
"port":8080,
"weight":1
}
]
you can ignore filed weight
first because it related to another mode
Filed host
means real server's host (domain or ip).
Filed port
is the real server's entrance that your client want to visit via jproxy.
Now,let's introduce the filed weight
!!
weight
's value that you set up.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型