Skip to content

Commit

Permalink
update (#7)
Browse files Browse the repository at this point in the history
* rm ParseHostname and restore http_message.cpp

* reduce ParseUrl() for Init()

* update en/http_client.mp

* Update circuit_breaker.md

* Update overview.md

* community: update lorin's oncall report from 08/23/2021

* redesign InitSingle

* update docs

* Update oncall.md

Add caojin's  weekly oncall report

* add cases.md

* add ut

add ut

* Update oncall.md

add  link to helei's oncall report

* Add use case of Baidu

* Improve client doc

* Improve client en doc

* Improve error_code doc

* Improve error_code en doc

* Improve server doc

* Improve server en doc

* Improve cpu_profiler doc

* Improve status doc

* Improve status en doc

* Improve bthread_id doc

* EndPoint support ipv4 and unix domain socket

* Add EndPoint test for ipv4 and unix domain socket

* Support ipv6 and unix domain socket for brpc

* Support ipv6 and uds for example echo_c++

* Add doc for IPV6 and Unix domain socket

* Add test for consistent_hashing LB with IPV6 and UDS

* Update cases.md

* Create cases.md

* Fix noflush compile fail with glog

* Fix typo

* Update sampler.cpp

fix typo

* community: update oncall.md

* Fix LA selection runs too long

* wr/wrr policy degradation

* only support http not http2

* doc(circuit_breaker): add ema wiki link

* Update cases.md

* Update cases.md

* update oncall report

* community: add release doc

* Update release_cn.md

* release 1.0.0

* Update http2_rpc_protocol.cpp

grpc add H2 SETTINGS extension,remove this WARNING log。

* Update http2_rpc_protocol.cpp

* Add flag `pb_single_repeated_to_array'

Add an option to allow serialize/deserialize to/from a json array.

* Fix a test case on json to pb

* Add test case for `pb_single_repeated_to_array'

* Fix a typo of compress type

* Update client doc about channel destruction

* Fix typo

* fix小typo

found when following the instruction

* update gnp edit command options

* when http header parse error, send 400 response

* Exclude mesalink/openssl/ssl.h when find openssl

Resolve apache#1622

* change varable name

* fix status

* add release check related content

* Update releasecheck.md

* update docs

* Update images in docs to remove hostname and ip

* Add brpc logo

Supply a vector graphic logo of brpc(svg)

* Update gifs in docs to remove hostname and ip

* Update rpc_press doc to remove specific hostname

* Replace baidu internal wiki address

* minor, fix typo in Stream::OnReceived

* Update load_balancer.cpp

* added brpc in iqiyi

* added case in iqiyi

* minor, fix typo in execution_queue.md

* Update cpu profiler doc

* fix: rpc_view defer_close_second flag typo

* update oncall report

* doc: add use case

* docs(circuit_breaker): fix word error

* Add rpc_replay BUILD file

* Improvement: brpc support higher version of protobuf

* fix(input_messenger) client side retry policy

client retry parse message when baidu_std fall to streaming_rpc

* Update oncall.md

* Create newcommitter.md

* add http_host gflag for rpc_replay

* update doc for rpc_replay

* Support parse proto-text format http request body

* make msg more clear

* Update oncall.md

* change fatal to error

* add unittest for proto-text content-type

* add protobuf_text content-type ut

* docs: fix typo

* Fix work_stealing_queue_unittest for ARM.

* Fix LatencyRecorder qps not accurate

* Fix unstable RecorderTest case

* Fix unstable UT link error

* Fix unstable UT link error

* Add `;` for consistency to origin code.

* Typo Fix: Change Resourse to resource

* fix(input_messenger) update preferred index

fix comments

* Update flat_map_unittest.cpp insert test case

* [Compile] avoid compile error after gcc11 with --std=c++20

* flat_map: fix code annotation

* Update newcommitter.md

* Update Thrift download url to avoid pr build failed

thrift download url  `https://downloads.apache.org/thrift/0.11.0/thrift-0.11.0.tar.gz` has moved to `https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz`

* ByteSize() is deprecated, use ByteSizeLong() instead

* Fix compiler fail after merge apache#1560 and apache#1460

* Fix merge conflicts

* Adjust parameter name to be more obvious

* Add docs for option `pb_single_repeated_to_array'

* Release 1.1.0

* Update newcommitter.md

* Update newcommitter.md

* Update year in NOTICE

* Add list-sigs in release step

* add macro

* use method instead of macro

* change to camel case

* Add vote results to incubator vote mail template

* doc: Update incubator vote mail template

* Update oncall.md

* doc: update download link in release doc

* [UPDATE] fix c struct compile error

solve this error. make it the same as bthread.h

* doc: Update announce step in release doc

* Oncall report from Apr 10th to Apr 16th

* add redis request empty notice

* add redis request empty notice

* add redis request empty notice

* Add redis auth doc

* Add oncall report Apr.17th - Apr.24th 2022

* client.md 文档优化

https:// 后面补一个空格,防止后面的中文被Github网页识别成链接的一部分

* fix auto https check

* Update oncall.md

* ``

* client.md 文档优化 (apache#1755)

* client.md 文档优化

https:// 后面补一个空格,防止后面的中文被Github网页识别成链接的一部分

* ``

* Update oncall.md

* comment fix

* Update client.md (apache#1767)

* json2pb::JsonToProtoMessage() supports parsing multiple jsons

* butex_wake* support nosignal flag, use bthread_flush signal batch (apache#1751)

* Fix compile error due to std limits header absent (apache#1764)

fix compile error like `incubator-brpc/src/brpc/redis_command.cpp:411:29: error: ‘numeric_limits’ is not a member of ‘std’`

* Fix _dl_sym undefined reference

* Fix a deadlock happened in ClearAbandonedStreamsImpl path(issues/1778) (apache#1781)

* Update newcommitter.md

* Update newcommitter.md

* Update newcommitter.md

* Update newcommitter.md

* Update newcommitter.md

* Support apple silicon

* Elaborate how-to-build steps for MacOS

* BugFix: Send WindowUpdate when ClearAbandonedStreams is called (apache#1786)

* add try catch for thrift

* update catch exception

* update exception

* update exception

* update exception

* Update oncall.md

* Fix discovery naming service core (apache#1802)

* Update weighted_randomized_load_balancer.cpp

* Update weighted_round_robin_load_balancer.cpp

Co-authored-by: LorinLee <lorinlee1996@gmail.com>
Co-authored-by: serverglen <serverglen@gmail.com>
Co-authored-by: Tanzhongyi(Jerry Tan) <13718272827@163.com>
Co-authored-by: Jiashun Zhu <zhujiashun2010@gmail.com>
Co-authored-by: tanzhongyi003 <jerrytan@apache.org>
Co-authored-by: jamesge <jge666@gmail.com>
Co-authored-by: wangweibing <wangweibing@baidu.com>
Co-authored-by: YIXIAO SHI <aieruishi@gmail.com>
Co-authored-by: jiangtao <hohojiang@126.com>
Co-authored-by: yangshuaijie <yangshuaijie@baidu.com>
Co-authored-by: huxiguo <uestc.hugo@gmail.com>
Co-authored-by: jiaozilang <qql7041@gmail.com>
Co-authored-by: caidj <31362185+cdjingit@users.noreply.github.com>
Co-authored-by: cdjingit <642580887@qq.com>
Co-authored-by: 李磊 <lilei.rd@bytedance.com>
Co-authored-by: Jairo <947600215@qq.com>
Co-authored-by: Zhangyi Chen <frozen.zju@gmail.com>
Co-authored-by: wxf <xiaofeng.wang@bqvision.com>
Co-authored-by: Zhengguo Yang <yangzhgg@gmail.com>
Co-authored-by: egolearner <45122959+egolearner@users.noreply.github.com>
Co-authored-by: therealnick233 <nickpanmail@gmail.com>
Co-authored-by: 焦龙 <jiaolong02@meituan.com>
Co-authored-by: zhouwk <zhouwk@zenme.com>
Co-authored-by: wwbmmm <wwbmmm@163.com>
Co-authored-by: Clement Ma <mahongweichina@gmail.com>
Co-authored-by: Jiatao Tao <245915794@qq.com>
Co-authored-by: ehds <ehds@qq.com>
Co-authored-by: caidaojin <caidaojin@qiyi.com>
Co-authored-by: dl239 <dl239@126.com>
Co-authored-by: taoxu <taoxu@bilibili.com>
Co-authored-by: Shuai Zhang <zhangshuai.ustc@gmail.com>
Co-authored-by: HongboLiu <lhbf@qq.com>
Co-authored-by: Tudou <gao568321994@outlook.com>
Co-authored-by: TousakaRin <lhestz@163.com>
Co-authored-by: Yangshen⚡Deng <yangshen.d@bupt.edu.cn>
Co-authored-by: mwish <anmmscs_maple@qq.com>
Co-authored-by: Xiaofeng Wang <wasphin@gmail.com>
Co-authored-by: Franklin Shan <37760924+wolfdan666@users.noreply.github.com>
Co-authored-by: lzfhust <lzfhust@126.com>
Co-authored-by: devin.zhang <devin.zhang@shopee.com>
Co-authored-by: lei.li <lei.li@clickzetta.com>
Co-authored-by: 372046933 <372046933@users.noreply.github.com>
Co-authored-by: Yang,Liming <liming.yang@139.com>
Co-authored-by: GOGOYAO <shunyuyao@126.com>
Co-authored-by: helei.sig11 <helei.sig11@bytedance.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 225 changed files with 4,552 additions and 627 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,13 @@ cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
/CPackSourceConfig.cmake
/CPackConfig.cmake
/cmake-build-debug/
/googletest-download/
/googletest-src/
/test/rpc_data/
/test/monitor/
/test/curl.out
/test/out.txt
/test/recordio_ref.io
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ before_script:
before_install:
- wget --no-clobber https://github.com/bazelbuild/bazel/releases/download/0.25.1/bazel_0.25.1-linux-x86_64.deb && sudo dpkg -i bazel_0.25.1-linux-x86_64.deb
- sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config # thrift dependencies
- wget http://www.us.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && tar -xf thrift-0.11.0.tar.gz && cd thrift-0.11.0/ && ./configure --prefix=/usr --with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no CXXFLAGS="-Wno-unused-variable" && make -j4 && sudo make install && cd -
- wget https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && tar -xf thrift-0.11.0.tar.gz && cd thrift-0.11.0/ && ./configure --prefix=/usr --with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no CXXFLAGS="-Wno-unused-variable" && make -j4 && sudo make install && cd -

install:
- sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev libboost-dev libssl-dev libevent-dev libboost-test-dev libgoogle-glog-dev
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Before the PR:

After the PR:

* Make sure the [travis-ci](https://travis-ci.org/apache/incubator-brpc/pull_requests) passed.
* Make sure the [travis-ci](https://app.travis-ci.com/github/apache/incubator-brpc/pull_requests) passed.

# Chinese version

Expand All @@ -26,4 +26,4 @@ After the PR:

提交PR后请确认:

* [travis-ci](https://travis-ci.org/apache/incubator-brpc/pull_requests)成功通过。
* [travis-ci](https://app.travis-ci.com/github/apache/incubator-brpc/pull_requests)成功通过。
10 changes: 10 additions & 0 deletions DISCLAIMER
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Apache brpc is an effort undergoing incubation at
The Apache Software Foundation (ASF), sponsored by the name of Apache TLP sponsor.

Incubation is required of all newly accepted projects until a further review
indicates that the infrastructure, communications, and decision making process
have stabilized in a manner consistent with other successful ASF projects.

While incubation status is not necessarily a reflection of the completeness
or stability of the code, it does indicate that the project has yet to be
fully endorsed by the ASF.
18 changes: 0 additions & 18 deletions DISCLAIMER-WIP

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

# A image for building/testing brpc
FROM ubuntu:16.04
FROM ubuntu:20.04

# prepare env
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -37,6 +37,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libsnappy-dev && \
apt-get clean -y

RUN git clone https://github.com/brpc/brpc.git brpc
RUN cd /brpc && sh config_brpc.sh --headers=/usr/include --libs=/usr/lib && \
RUN git clone https://github.com/apache/incubator-brpc.git
RUN cd incubator-brpc && sh config_brpc.sh --headers=/usr/include --libs=/usr/lib && \
make -j "$(nproc)"
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ src/butil/third_party/valgrind/valgrind.h: licensed under the following terms:

--------------------------------------------------------------------------------

src/butil/crc32c.h, src/butil/crc32c.cc: licensed under the following terms:
src/butil/crc32c.h, src/butil/crc32c.cc, test/crc32c_unittest.cc: licensed under the following terms:

Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
This source code is licensed under the BSD-style license found in the
Expand Down Expand Up @@ -663,7 +663,7 @@ src/brpc/ts.cpp: licensed under the following terms:

--------------------------------------------------------------------------------

src/brpc/builtin/pprof_perl.cpp: licensed under the following terms:
src/brpc/builtin/pprof_perl.cpp, tools/pprof: licensed under the following terms:

Copyright (c) 1998-2007, Google Inc.
All rights reserved.
Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ endif

#required by butil/crc32.cc to boost performance for 10x
ifeq ($(shell test $(GCC_VERSION) -ge 40400; echo $$?),0)
CXXFLAGS+=-msse4 -msse4.2
ifeq ($(shell uname -p),i386) #note: i386 is processor family type, not the 32-bit x86 arch
CXXFLAGS+=-msse4 -msse4.2
endif
endif
#not solved yet
ifeq ($(CC),gcc)
ifeq ($(shell test $(GCC_VERSION) -ge 70000; echo $$?),0)
CXXFLAGS+=-Wno-aligned-new
endif
ifeq ($(shell test $(GCC_VERSION) -ge 70000; echo $$?),0)
CXXFLAGS+=-Wno-aligned-new
endif
endif

BUTIL_SOURCES = \
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache brpc (incubating)
Copyright 2018-2020 The Apache Software Foundation
Copyright 2018-2022 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
2 changes: 1 addition & 1 deletion RELEASE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.7
1.1.0
43 changes: 43 additions & 0 deletions community/cases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# brpc的应用案例集合

## what is this
这里列出brpc在各个企业中的落地场景,包括企业名称,应用项目作用,集群规模和QPS统计,使用的版本信息等

## Why this
列出各个案例,一来方便用户进行参考,了解brpc可以用在哪些场景下;
二来方便社区开发者统计brpc的版本,规模等情况

# Case List
## 落地case的sample (如果有多个场景,建议分开)
* 公司名称: xxx公司
* 落地项目: 例如app的个性化推荐系统的预测服务
* 集群规模: 例如100台
* QPS: 例如峰值1000万, 均值100万
* 使用版本: 例如社区版本0.9.7
* 信息提供者:某某

## brpc在 百度的落地情况
* 公司名称: 百度
* 落地项目: 基础架构(分布式计算、存储、数据库等),业务系统(Feed、凤巢、地图等)
* 集群规模: 2000多个活跃模块,100w以上实例
* 使用版本: baidu内部版本
* 信息提供者:wwbmmm

## brpc在维沃的落地情况
* 公司名称: 维沃(vivo)
* 落地项目: 在线推荐系统
* 使用版本: 社区版本0.9.7
* 信息提供者:guodongxiaren

## brpc在爱奇艺的落地情况
* 公司名称: 爱奇艺(iqiyi)
* 落地项目: 广告、推荐、搜索
* 使用版本: 基于社区版本定制
* 集群规模: 3000+台机器(广告)
* 信息提供者:cdjingit

## brpc在第四范式的落地情况
* 公司名称: 第四范式(4paradigm)
* 落地项目: 风控、推荐、智能运维等
* 使用版本: 基于社区版本定制
* 信息提供者:dl239
1 change: 1 addition & 0 deletions community/logo-bRPC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 28370ba

Please sign in to comment.