grpc 1.58.3 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +48 -33
- data/include/grpc/event_engine/event_engine.h +6 -10
- data/include/grpc/impl/channel_arg_names.h +4 -0
- data/include/grpc/support/port_platform.h +74 -1
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +22 -9
- data/src/core/ext/filters/client_channel/client_channel.cc +422 -56
- data/src/core/ext/filters/client_channel/client_channel.h +52 -8
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +15 -1
- data/src/core/ext/filters/client_channel/dynamic_filters.h +2 -0
- data/src/core/ext/filters/client_channel/{http_proxy.cc → http_proxy_mapper.cc} +1 -1
- data/src/core/ext/filters/client_channel/{http_proxy.h → http_proxy_mapper.h} +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +188 -0
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +214 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +17 -4
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +41 -6
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +5 -3
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +32 -103
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -7
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +416 -139
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +16 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +434 -459
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +410 -26
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +14 -46
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +851 -57
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +16 -10
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +47 -32
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +55 -3
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +105 -175
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +14 -7
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +24 -6
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +36 -2
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +54 -44
- data/src/core/ext/filters/client_channel/subchannel.cc +33 -0
- data/src/core/ext/filters/client_channel/subchannel.h +9 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +11 -6
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +28 -22
- data/src/core/ext/transport/chttp2/transport/flow_control.h +27 -4
- data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +34 -36
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +3 -3
- data/src/core/ext/transport/chttp2/transport/internal.h +66 -47
- data/src/core/ext/transport/chttp2/transport/{frame.h → legacy_frame.h} +3 -3
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -2
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +10 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +4 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/writing.cc +2 -1
- data/src/core/ext/transport/inproc/inproc_transport.cc +9 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +75 -83
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +73 -81
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +294 -302
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +42 -44
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +141 -149
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +36 -38
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +157 -165
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +87 -89
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +13 -15
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +55 -63
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +111 -113
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +441 -449
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +88 -96
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +40 -42
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +180 -188
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +26 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +245 -253
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +119 -127
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +184 -192
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +225 -233
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +63 -65
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +246 -254
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +28 -36
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +48 -56
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +92 -100
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +38 -40
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +167 -175
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +34 -36
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +162 -170
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +10 -12
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +37 -45
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +22 -24
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +97 -105
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +24 -26
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +111 -119
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +43 -45
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +183 -191
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +20 -22
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +253 -255
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +1108 -1116
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +150 -158
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +53 -61
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +21 -23
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +81 -89
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +52 -60
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +14 -22
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +468 -476
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +25 -33
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +11 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +40 -48
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +27 -35
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +165 -173
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +9 -11
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +32 -40
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +39 -41
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +169 -177
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +55 -57
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +241 -249
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +98 -106
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +11 -19
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +34 -42
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +47 -55
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +12 -20
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +2 -4
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +1 -9
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +45 -47
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +190 -198
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +54 -56
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +210 -218
- data/src/core/ext/upb-generated/google/api/http.upb.c +15 -17
- data/src/core/ext/upb-generated/google/api/http.upb.h +60 -68
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +4 -6
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +15 -23
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +359 -204
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1340 -760
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +1 -3
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +1 -9
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +11 -13
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +43 -51
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +10 -12
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +28 -36
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +4 -6
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +15 -23
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +11 -13
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +35 -43
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +10 -12
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +28 -36
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +48 -50
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +190 -198
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +5 -7
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +15 -23
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +3 -5
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +7 -15
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +21 -23
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +80 -88
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +9 -11
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +29 -37
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +32 -34
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +147 -155
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/validate/validate.upb.c +201 -203
- data/src/core/ext/upb-generated/validate/validate.upb.h +924 -932
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +7 -15
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +16 -24
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +6 -8
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +20 -28
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +12 -20
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +35 -43
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +14 -22
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +16 -18
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +43 -51
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +5 -13
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +21 -29
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +1 -3
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +24 -32
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +24 -26
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +103 -111
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +61 -69
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +18 -26
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +8 -16
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +367 -290
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +10 -0
- data/src/core/ext/xds/xds_client.cc +6 -9
- data/src/core/ext/xds/xds_client.h +2 -2
- data/src/core/ext/xds/xds_cluster.cc +30 -42
- data/src/core/ext/xds/xds_cluster.h +0 -4
- data/src/core/ext/xds/xds_endpoint.cc +12 -19
- data/src/core/ext/xds/xds_endpoint.h +0 -1
- data/src/core/ext/xds/xds_http_filters.cc +1 -4
- data/src/core/ext/xds/xds_listener.cc +14 -14
- data/src/core/ext/xds/xds_listener.h +13 -3
- data/src/core/ext/xds/xds_resource_type.h +1 -7
- data/src/core/ext/xds/xds_resource_type_impl.h +9 -11
- data/src/core/ext/xds/xds_route_config.cc +10 -11
- data/src/core/ext/xds/xds_route_config.h +1 -1
- data/src/core/ext/xds/xds_server_config_fetcher.cc +53 -28
- data/src/core/ext/xds/xds_transport_grpc.cc +11 -1
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +2 -4
- data/src/core/lib/channel/call_tracer.cc +7 -1
- data/src/core/lib/channel/call_tracer.h +4 -1
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +1 -1
- data/src/core/lib/config/config_vars.h +1 -1
- data/src/core/lib/config/core_configuration.cc +2 -1
- data/src/core/lib/config/core_configuration.h +5 -4
- data/src/core/lib/debug/stats_data.cc +146 -51
- data/src/core/lib/debug/stats_data.h +81 -20
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +3 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +15 -3
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.h +15 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +3 -15
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +10 -4
- data/src/core/lib/experiments/config.cc +9 -1
- data/src/core/lib/experiments/experiments.cc +144 -60
- data/src/core/lib/experiments/experiments.h +146 -41
- data/src/core/lib/gprpp/fork.h +1 -1
- data/src/core/lib/gprpp/manual_constructor.h +1 -2
- data/src/core/lib/gprpp/no_destruct.h +1 -1
- data/src/core/lib/gprpp/per_cpu.cc +2 -0
- data/src/core/lib/gprpp/per_cpu.h +36 -7
- data/src/core/lib/gprpp/ref_counted_ptr.h +63 -0
- data/src/core/lib/gprpp/work_serializer.cc +297 -25
- data/src/core/lib/gprpp/work_serializer.h +25 -9
- data/src/core/lib/iomgr/combiner.cc +54 -15
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -4
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +55 -19
- data/src/core/lib/iomgr/polling_entity.cc +10 -0
- data/src/core/lib/iomgr/polling_entity.h +2 -0
- data/src/core/lib/iomgr/port.h +14 -0
- data/src/core/lib/iomgr/tcp_posix.cc +17 -14
- data/src/core/lib/load_balancing/lb_policy.h +10 -9
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/detail/seq_state.h +418 -0
- data/src/core/lib/promise/latch.h +1 -0
- data/src/core/lib/promise/loop.h +8 -5
- data/src/core/lib/promise/pipe.h +24 -24
- data/src/core/lib/promise/poll.h +4 -6
- data/src/core/lib/resolver/server_address.h +1 -0
- data/src/core/lib/resource_quota/memory_quota.cc +58 -2
- data/src/core/lib/resource_quota/memory_quota.h +4 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +115 -9
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +86 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +0 -59
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -57
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -14
- data/src/core/lib/slice/slice.h +6 -0
- data/src/core/lib/slice/slice_buffer.cc +15 -0
- data/src/core/lib/slice/slice_buffer.h +16 -4
- data/src/core/lib/slice/slice_refcount.h +1 -1
- data/src/core/lib/surface/call.cc +92 -34
- data/src/core/lib/surface/call.h +4 -0
- data/src/core/lib/surface/channel.cc +7 -4
- data/src/core/lib/surface/channel_init.h +3 -2
- data/src/core/lib/surface/server.cc +45 -5
- data/src/core/lib/surface/server.h +18 -6
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.cc +3 -5
- data/src/core/lib/transport/metadata_batch.cc +6 -0
- data/src/core/lib/transport/metadata_batch.h +20 -1
- data/src/core/lib/transport/parsed_metadata.h +2 -4
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/transport.h +21 -11
- data/src/core/tsi/ssl_transport_security.cc +7 -0
- data/src/core/tsi/ssl_transport_security.h +4 -0
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_channel_args.c +6 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +4 -1
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/upb/upb/collections/array.c +6 -0
- data/third_party/upb/upb/collections/array.h +6 -0
- data/third_party/upb/upb/collections/map.c +7 -0
- data/third_party/upb/upb/collections/map.h +5 -0
- data/third_party/upb/upb/collections/map_sorter_internal.h +1 -1
- data/third_party/upb/upb/collections/message_value.h +8 -1
- data/third_party/upb/upb/generated_code_support.h +54 -0
- data/third_party/upb/upb/hash/common.c +5 -0
- data/third_party/upb/upb/hash/common.h +1 -0
- data/third_party/upb/upb/hash/str_table.h +1 -0
- data/third_party/upb/upb/message/accessors.c +25 -1
- data/third_party/upb/upb/message/accessors.h +46 -25
- data/third_party/upb/upb/message/accessors_internal.h +69 -3
- data/third_party/upb/upb/message/extension_internal.h +1 -1
- data/third_party/upb/upb/message/internal/map_entry.h +64 -0
- data/third_party/upb/upb/message/internal.h +2 -6
- data/third_party/upb/upb/message/message.c +0 -6
- data/third_party/upb/upb/message/message.h +1 -1
- data/third_party/upb/upb/message/tagged_ptr.h +89 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +150 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.h +63 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.c +122 -374
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.h +11 -50
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +46 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +81 -0
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +73 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor/internal}/encode.c +58 -32
- data/third_party/upb/upb/{mini_table/encode_internal.h → mini_descriptor/internal/encode.h} +3 -4
- data/third_party/upb/upb/{mini_table/encode_internal.hpp → mini_descriptor/internal/encode.hpp} +1 -1
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +50 -0
- data/third_party/upb/upb/{mini_table/common_internal.h → mini_descriptor/internal/wire_constants.h} +3 -23
- data/third_party/upb/upb/mini_descriptor/link.c +142 -0
- data/third_party/upb/upb/mini_descriptor/link.h +104 -0
- data/third_party/upb/upb/mini_table/{types.h → enum.h} +19 -9
- data/third_party/upb/upb/mini_table/extension.h +40 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +1 -1
- data/third_party/upb/upb/mini_table/extension_registry.h +2 -1
- data/third_party/upb/upb/mini_table/field.h +118 -0
- data/third_party/upb/upb/{json_decode.h → mini_table/file.h} +5 -6
- data/third_party/upb/upb/mini_table/{enum_internal.h → internal/enum.h} +7 -19
- data/third_party/upb/upb/mini_table/{extension_internal.h → internal/extension.h} +8 -8
- data/third_party/upb/upb/mini_table/{field_internal.h → internal/field.h} +10 -66
- data/third_party/upb/upb/mini_table/{file_internal.h → internal/file.h} +6 -4
- data/third_party/upb/upb/mini_table/internal/message.c +39 -0
- data/third_party/upb/upb/mini_table/{message_internal.h → internal/message.h} +14 -37
- data/third_party/upb/upb/mini_table/{sub_internal.h → internal/sub.h} +7 -6
- data/third_party/upb/upb/mini_table/{common.c → message.c} +2 -33
- data/third_party/upb/upb/mini_table/{common.h → message.h} +12 -77
- data/third_party/upb/upb/{json_encode.h → mini_table/sub.h} +5 -6
- data/third_party/upb/upb/reflection/def.hpp +16 -4
- data/third_party/upb/upb/reflection/def_pool_internal.h +1 -1
- data/third_party/upb/upb/reflection/desc_state_internal.h +1 -1
- data/third_party/upb/upb/reflection/enum_def.c +1 -1
- data/third_party/upb/upb/reflection/field_def.c +2 -1
- data/third_party/upb/upb/reflection/message.c +2 -2
- data/third_party/upb/upb/reflection/message_def.c +3 -1
- data/third_party/upb/upb/wire/decode.c +68 -29
- data/third_party/upb/upb/wire/decode.h +40 -0
- data/third_party/upb/upb/wire/encode.c +23 -13
- metadata +43 -27
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.cc +0 -256
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.h +0 -137
@@ -27,6 +27,19 @@ union DblUint {
|
|
27
27
|
uint64_t uint;
|
28
28
|
};
|
29
29
|
} // namespace
|
30
|
+
void HistogramCollector_100000_20::Collect(Histogram_100000_20* result) const {
|
31
|
+
for (int i = 0; i < 20; i++) {
|
32
|
+
result->buckets_[i] += buckets_[i].load(std::memory_order_relaxed);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
Histogram_100000_20 operator-(const Histogram_100000_20& left,
|
36
|
+
const Histogram_100000_20& right) {
|
37
|
+
Histogram_100000_20 result;
|
38
|
+
for (int i = 0; i < 20; i++) {
|
39
|
+
result.buckets_[i] = left.buckets_[i] - right.buckets_[i];
|
40
|
+
}
|
41
|
+
return result;
|
42
|
+
}
|
30
43
|
void HistogramCollector_65536_26::Collect(Histogram_65536_26* result) const {
|
31
44
|
for (int i = 0; i < 26; i++) {
|
32
45
|
result->buckets_[i] += buckets_[i].load(std::memory_order_relaxed);
|
@@ -54,28 +67,28 @@ Histogram_16777216_20 operator-(const Histogram_16777216_20& left,
|
|
54
67
|
}
|
55
68
|
return result;
|
56
69
|
}
|
57
|
-
void
|
58
|
-
for (int i = 0; i <
|
70
|
+
void HistogramCollector_80_10::Collect(Histogram_80_10* result) const {
|
71
|
+
for (int i = 0; i < 10; i++) {
|
59
72
|
result->buckets_[i] += buckets_[i].load(std::memory_order_relaxed);
|
60
73
|
}
|
61
74
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
for (int i = 0; i <
|
75
|
+
Histogram_80_10 operator-(const Histogram_80_10& left,
|
76
|
+
const Histogram_80_10& right) {
|
77
|
+
Histogram_80_10 result;
|
78
|
+
for (int i = 0; i < 10; i++) {
|
66
79
|
result.buckets_[i] = left.buckets_[i] - right.buckets_[i];
|
67
80
|
}
|
68
81
|
return result;
|
69
82
|
}
|
70
|
-
void
|
71
|
-
for (int i = 0; i <
|
83
|
+
void HistogramCollector_10000_20::Collect(Histogram_10000_20* result) const {
|
84
|
+
for (int i = 0; i < 20; i++) {
|
72
85
|
result->buckets_[i] += buckets_[i].load(std::memory_order_relaxed);
|
73
86
|
}
|
74
87
|
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
for (int i = 0; i <
|
88
|
+
Histogram_10000_20 operator-(const Histogram_10000_20& left,
|
89
|
+
const Histogram_10000_20& right) {
|
90
|
+
Histogram_10000_20 result;
|
91
|
+
for (int i = 0; i < 20; i++) {
|
79
92
|
result.buckets_[i] = left.buckets_[i] - right.buckets_[i];
|
80
93
|
}
|
81
94
|
return result;
|
@@ -101,6 +114,8 @@ const absl::string_view
|
|
101
114
|
"cq_next_creates",
|
102
115
|
"cq_callback_creates",
|
103
116
|
"wrr_updates",
|
117
|
+
"work_serializer_items_enqueued",
|
118
|
+
"work_serializer_items_dequeued",
|
104
119
|
};
|
105
120
|
const absl::string_view GlobalStats::counter_doc[static_cast<int>(
|
106
121
|
Counter::COUNT)] = {
|
@@ -129,14 +144,25 @@ const absl::string_view GlobalStats::counter_doc[static_cast<int>(
|
|
129
144
|
"Number of completion queues created for cq_callback (indicates callback "
|
130
145
|
"api usage)",
|
131
146
|
"Number of wrr updates that have been received",
|
147
|
+
"Number of items enqueued onto work serializers",
|
148
|
+
"Number of items dequeued from work serializers",
|
132
149
|
};
|
133
150
|
const absl::string_view
|
134
151
|
GlobalStats::histogram_name[static_cast<int>(Histogram::COUNT)] = {
|
135
|
-
"call_initial_size",
|
136
|
-
"
|
137
|
-
"
|
138
|
-
"
|
139
|
-
"
|
152
|
+
"call_initial_size",
|
153
|
+
"tcp_write_size",
|
154
|
+
"tcp_write_iov_size",
|
155
|
+
"tcp_read_size",
|
156
|
+
"tcp_read_offer",
|
157
|
+
"tcp_read_offer_iov_size",
|
158
|
+
"http2_send_message_size",
|
159
|
+
"http2_metadata_size",
|
160
|
+
"wrr_subchannel_list_size",
|
161
|
+
"wrr_subchannel_ready_size",
|
162
|
+
"work_serializer_run_time_ms",
|
163
|
+
"work_serializer_work_time_ms",
|
164
|
+
"work_serializer_work_time_per_item_ms",
|
165
|
+
"work_serializer_items_per_run",
|
140
166
|
};
|
141
167
|
const absl::string_view GlobalStats::histogram_doc[static_cast<int>(
|
142
168
|
Histogram::COUNT)] = {
|
@@ -150,32 +176,43 @@ const absl::string_view GlobalStats::histogram_doc[static_cast<int>(
|
|
150
176
|
"Number of bytes consumed by metadata, according to HPACK accounting rules",
|
151
177
|
"Number of subchannels in a subchannel list at picker creation time",
|
152
178
|
"Number of READY subchannels in a subchannel list at picker creation time",
|
179
|
+
"Number of milliseconds work serializers run for",
|
180
|
+
"When running, how many milliseconds are work serializers actually doing "
|
181
|
+
"work",
|
182
|
+
"How long do individual items take to process in work serializers",
|
183
|
+
"How many callbacks are executed when a work serializer runs",
|
153
184
|
};
|
154
185
|
namespace {
|
155
|
-
const int kStatsTable0[
|
186
|
+
const int kStatsTable0[21] = {0, 1, 2, 4, 8, 15, 27,
|
187
|
+
49, 89, 160, 288, 517, 928, 1666,
|
188
|
+
2991, 5369, 9637, 17297, 31045, 55719, 100000};
|
189
|
+
const uint8_t kStatsTable1[30] = {3, 3, 4, 4, 5, 6, 6, 7, 7, 8,
|
190
|
+
9, 9, 10, 10, 11, 11, 12, 13, 13, 14,
|
191
|
+
15, 15, 16, 16, 17, 17, 18, 19, 19, 20};
|
192
|
+
const int kStatsTable2[27] = {0, 1, 2, 4, 7, 11, 17,
|
156
193
|
26, 40, 61, 92, 139, 210, 317,
|
157
194
|
478, 721, 1087, 1638, 2468, 3719, 5604,
|
158
195
|
8443, 12721, 19166, 28875, 43502, 65536};
|
159
|
-
const uint8_t
|
196
|
+
const uint8_t kStatsTable3[29] = {3, 3, 4, 5, 6, 6, 7, 8, 9, 10,
|
160
197
|
11, 11, 12, 13, 14, 15, 16, 16, 17, 18,
|
161
198
|
19, 20, 21, 21, 22, 23, 24, 25, 26};
|
162
|
-
const int
|
199
|
+
const int kStatsTable4[21] = {
|
163
200
|
0, 1, 3, 8, 19, 45, 106,
|
164
201
|
250, 588, 1383, 3252, 7646, 17976, 42262,
|
165
202
|
99359, 233593, 549177, 1291113, 3035402, 7136218, 16777216};
|
166
|
-
const uint8_t
|
203
|
+
const uint8_t kStatsTable5[23] = {2, 3, 3, 4, 5, 6, 7, 8,
|
167
204
|
8, 9, 10, 11, 12, 12, 13, 14,
|
168
205
|
15, 16, 16, 17, 18, 19, 20};
|
169
|
-
const int
|
206
|
+
const int kStatsTable6[11] = {0, 1, 2, 4, 7, 11, 17, 26, 38, 56, 80};
|
207
|
+
const uint8_t kStatsTable7[9] = {3, 3, 4, 5, 6, 6, 7, 8, 9};
|
208
|
+
const int kStatsTable8[21] = {0, 1, 2, 4, 7, 12, 19,
|
170
209
|
30, 47, 74, 116, 182, 285, 445,
|
171
210
|
695, 1084, 1691, 2637, 4113, 6414, 10000};
|
172
|
-
const uint8_t
|
211
|
+
const uint8_t kStatsTable9[23] = {3, 3, 4, 5, 5, 6, 7, 8,
|
173
212
|
9, 9, 10, 11, 12, 12, 13, 14,
|
174
213
|
15, 15, 16, 17, 18, 18, 19};
|
175
|
-
const int kStatsTable6[11] = {0, 1, 2, 4, 7, 11, 17, 26, 38, 56, 80};
|
176
|
-
const uint8_t kStatsTable7[9] = {3, 3, 4, 5, 6, 6, 7, 8, 9};
|
177
214
|
} // namespace
|
178
|
-
int
|
215
|
+
int Histogram_100000_20::BucketFor(int value) {
|
179
216
|
if (value < 3) {
|
180
217
|
if (value < 0) {
|
181
218
|
return 0;
|
@@ -183,56 +220,52 @@ int Histogram_65536_26::BucketFor(int value) {
|
|
183
220
|
return value;
|
184
221
|
}
|
185
222
|
} else {
|
186
|
-
if (value <
|
223
|
+
if (value < 65537) {
|
187
224
|
DblUint val;
|
188
225
|
val.dbl = value;
|
189
226
|
const int bucket =
|
190
227
|
kStatsTable1[((val.uint - 4613937818241073152ull) >> 51)];
|
191
228
|
return bucket - (value < kStatsTable0[bucket]);
|
192
229
|
} else {
|
193
|
-
return
|
230
|
+
return 19;
|
194
231
|
}
|
195
232
|
}
|
196
233
|
}
|
197
|
-
int
|
198
|
-
if (value <
|
234
|
+
int Histogram_65536_26::BucketFor(int value) {
|
235
|
+
if (value < 3) {
|
199
236
|
if (value < 0) {
|
200
237
|
return 0;
|
201
238
|
} else {
|
202
239
|
return value;
|
203
240
|
}
|
204
241
|
} else {
|
205
|
-
if (value <
|
242
|
+
if (value < 49153) {
|
206
243
|
DblUint val;
|
207
244
|
val.dbl = value;
|
208
245
|
const int bucket =
|
209
|
-
kStatsTable3[((val.uint -
|
246
|
+
kStatsTable3[((val.uint - 4613937818241073152ull) >> 51)];
|
210
247
|
return bucket - (value < kStatsTable2[bucket]);
|
211
248
|
} else {
|
212
|
-
return
|
249
|
+
return 25;
|
213
250
|
}
|
214
251
|
}
|
215
252
|
}
|
216
|
-
int
|
217
|
-
if (value <
|
253
|
+
int Histogram_16777216_20::BucketFor(int value) {
|
254
|
+
if (value < 2) {
|
218
255
|
if (value < 0) {
|
219
256
|
return 0;
|
220
257
|
} else {
|
221
258
|
return value;
|
222
259
|
}
|
223
260
|
} else {
|
224
|
-
if (value <
|
261
|
+
if (value < 8388609) {
|
225
262
|
DblUint val;
|
226
263
|
val.dbl = value;
|
227
264
|
const int bucket =
|
228
|
-
kStatsTable5[((val.uint -
|
265
|
+
kStatsTable5[((val.uint - 4611686018427387904ull) >> 52)];
|
229
266
|
return bucket - (value < kStatsTable4[bucket]);
|
230
267
|
} else {
|
231
|
-
|
232
|
-
return 18;
|
233
|
-
} else {
|
234
|
-
return 19;
|
235
|
-
}
|
268
|
+
return 19;
|
236
269
|
}
|
237
270
|
}
|
238
271
|
}
|
@@ -259,6 +292,29 @@ int Histogram_80_10::BucketFor(int value) {
|
|
259
292
|
}
|
260
293
|
}
|
261
294
|
}
|
295
|
+
int Histogram_10000_20::BucketFor(int value) {
|
296
|
+
if (value < 3) {
|
297
|
+
if (value < 0) {
|
298
|
+
return 0;
|
299
|
+
} else {
|
300
|
+
return value;
|
301
|
+
}
|
302
|
+
} else {
|
303
|
+
if (value < 6145) {
|
304
|
+
DblUint val;
|
305
|
+
val.dbl = value;
|
306
|
+
const int bucket =
|
307
|
+
kStatsTable9[((val.uint - 4613937818241073152ull) >> 51)];
|
308
|
+
return bucket - (value < kStatsTable8[bucket]);
|
309
|
+
} else {
|
310
|
+
if (value < 6414) {
|
311
|
+
return 18;
|
312
|
+
} else {
|
313
|
+
return 19;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
262
318
|
GlobalStats::GlobalStats()
|
263
319
|
: client_calls_created{0},
|
264
320
|
server_calls_created{0},
|
@@ -278,41 +334,55 @@ GlobalStats::GlobalStats()
|
|
278
334
|
cq_pluck_creates{0},
|
279
335
|
cq_next_creates{0},
|
280
336
|
cq_callback_creates{0},
|
281
|
-
wrr_updates{0}
|
337
|
+
wrr_updates{0},
|
338
|
+
work_serializer_items_enqueued{0},
|
339
|
+
work_serializer_items_dequeued{0} {}
|
282
340
|
HistogramView GlobalStats::histogram(Histogram which) const {
|
283
341
|
switch (which) {
|
284
342
|
default:
|
285
343
|
GPR_UNREACHABLE_CODE(return HistogramView());
|
286
344
|
case Histogram::kCallInitialSize:
|
287
|
-
return HistogramView{&Histogram_65536_26::BucketFor,
|
345
|
+
return HistogramView{&Histogram_65536_26::BucketFor, kStatsTable2, 26,
|
288
346
|
call_initial_size.buckets()};
|
289
347
|
case Histogram::kTcpWriteSize:
|
290
|
-
return HistogramView{&Histogram_16777216_20::BucketFor,
|
348
|
+
return HistogramView{&Histogram_16777216_20::BucketFor, kStatsTable4, 20,
|
291
349
|
tcp_write_size.buckets()};
|
292
350
|
case Histogram::kTcpWriteIovSize:
|
293
351
|
return HistogramView{&Histogram_80_10::BucketFor, kStatsTable6, 10,
|
294
352
|
tcp_write_iov_size.buckets()};
|
295
353
|
case Histogram::kTcpReadSize:
|
296
|
-
return HistogramView{&Histogram_16777216_20::BucketFor,
|
354
|
+
return HistogramView{&Histogram_16777216_20::BucketFor, kStatsTable4, 20,
|
297
355
|
tcp_read_size.buckets()};
|
298
356
|
case Histogram::kTcpReadOffer:
|
299
|
-
return HistogramView{&Histogram_16777216_20::BucketFor,
|
357
|
+
return HistogramView{&Histogram_16777216_20::BucketFor, kStatsTable4, 20,
|
300
358
|
tcp_read_offer.buckets()};
|
301
359
|
case Histogram::kTcpReadOfferIovSize:
|
302
360
|
return HistogramView{&Histogram_80_10::BucketFor, kStatsTable6, 10,
|
303
361
|
tcp_read_offer_iov_size.buckets()};
|
304
362
|
case Histogram::kHttp2SendMessageSize:
|
305
|
-
return HistogramView{&Histogram_16777216_20::BucketFor,
|
363
|
+
return HistogramView{&Histogram_16777216_20::BucketFor, kStatsTable4, 20,
|
306
364
|
http2_send_message_size.buckets()};
|
307
365
|
case Histogram::kHttp2MetadataSize:
|
308
|
-
return HistogramView{&Histogram_65536_26::BucketFor,
|
366
|
+
return HistogramView{&Histogram_65536_26::BucketFor, kStatsTable2, 26,
|
309
367
|
http2_metadata_size.buckets()};
|
310
368
|
case Histogram::kWrrSubchannelListSize:
|
311
|
-
return HistogramView{&Histogram_10000_20::BucketFor,
|
369
|
+
return HistogramView{&Histogram_10000_20::BucketFor, kStatsTable8, 20,
|
312
370
|
wrr_subchannel_list_size.buckets()};
|
313
371
|
case Histogram::kWrrSubchannelReadySize:
|
314
|
-
return HistogramView{&Histogram_10000_20::BucketFor,
|
372
|
+
return HistogramView{&Histogram_10000_20::BucketFor, kStatsTable8, 20,
|
315
373
|
wrr_subchannel_ready_size.buckets()};
|
374
|
+
case Histogram::kWorkSerializerRunTimeMs:
|
375
|
+
return HistogramView{&Histogram_100000_20::BucketFor, kStatsTable0, 20,
|
376
|
+
work_serializer_run_time_ms.buckets()};
|
377
|
+
case Histogram::kWorkSerializerWorkTimeMs:
|
378
|
+
return HistogramView{&Histogram_100000_20::BucketFor, kStatsTable0, 20,
|
379
|
+
work_serializer_work_time_ms.buckets()};
|
380
|
+
case Histogram::kWorkSerializerWorkTimePerItemMs:
|
381
|
+
return HistogramView{&Histogram_100000_20::BucketFor, kStatsTable0, 20,
|
382
|
+
work_serializer_work_time_per_item_ms.buckets()};
|
383
|
+
case Histogram::kWorkSerializerItemsPerRun:
|
384
|
+
return HistogramView{&Histogram_10000_20::BucketFor, kStatsTable8, 20,
|
385
|
+
work_serializer_items_per_run.buckets()};
|
316
386
|
}
|
317
387
|
}
|
318
388
|
std::unique_ptr<GlobalStats> GlobalStatsCollector::Collect() const {
|
@@ -353,6 +423,10 @@ std::unique_ptr<GlobalStats> GlobalStatsCollector::Collect() const {
|
|
353
423
|
result->cq_callback_creates +=
|
354
424
|
data.cq_callback_creates.load(std::memory_order_relaxed);
|
355
425
|
result->wrr_updates += data.wrr_updates.load(std::memory_order_relaxed);
|
426
|
+
result->work_serializer_items_enqueued +=
|
427
|
+
data.work_serializer_items_enqueued.load(std::memory_order_relaxed);
|
428
|
+
result->work_serializer_items_dequeued +=
|
429
|
+
data.work_serializer_items_dequeued.load(std::memory_order_relaxed);
|
356
430
|
data.call_initial_size.Collect(&result->call_initial_size);
|
357
431
|
data.tcp_write_size.Collect(&result->tcp_write_size);
|
358
432
|
data.tcp_write_iov_size.Collect(&result->tcp_write_iov_size);
|
@@ -363,6 +437,14 @@ std::unique_ptr<GlobalStats> GlobalStatsCollector::Collect() const {
|
|
363
437
|
data.http2_metadata_size.Collect(&result->http2_metadata_size);
|
364
438
|
data.wrr_subchannel_list_size.Collect(&result->wrr_subchannel_list_size);
|
365
439
|
data.wrr_subchannel_ready_size.Collect(&result->wrr_subchannel_ready_size);
|
440
|
+
data.work_serializer_run_time_ms.Collect(
|
441
|
+
&result->work_serializer_run_time_ms);
|
442
|
+
data.work_serializer_work_time_ms.Collect(
|
443
|
+
&result->work_serializer_work_time_ms);
|
444
|
+
data.work_serializer_work_time_per_item_ms.Collect(
|
445
|
+
&result->work_serializer_work_time_per_item_ms);
|
446
|
+
data.work_serializer_items_per_run.Collect(
|
447
|
+
&result->work_serializer_items_per_run);
|
366
448
|
}
|
367
449
|
return result;
|
368
450
|
}
|
@@ -395,6 +477,10 @@ std::unique_ptr<GlobalStats> GlobalStats::Diff(const GlobalStats& other) const {
|
|
395
477
|
result->cq_next_creates = cq_next_creates - other.cq_next_creates;
|
396
478
|
result->cq_callback_creates = cq_callback_creates - other.cq_callback_creates;
|
397
479
|
result->wrr_updates = wrr_updates - other.wrr_updates;
|
480
|
+
result->work_serializer_items_enqueued =
|
481
|
+
work_serializer_items_enqueued - other.work_serializer_items_enqueued;
|
482
|
+
result->work_serializer_items_dequeued =
|
483
|
+
work_serializer_items_dequeued - other.work_serializer_items_dequeued;
|
398
484
|
result->call_initial_size = call_initial_size - other.call_initial_size;
|
399
485
|
result->tcp_write_size = tcp_write_size - other.tcp_write_size;
|
400
486
|
result->tcp_write_iov_size = tcp_write_iov_size - other.tcp_write_iov_size;
|
@@ -409,6 +495,15 @@ std::unique_ptr<GlobalStats> GlobalStats::Diff(const GlobalStats& other) const {
|
|
409
495
|
wrr_subchannel_list_size - other.wrr_subchannel_list_size;
|
410
496
|
result->wrr_subchannel_ready_size =
|
411
497
|
wrr_subchannel_ready_size - other.wrr_subchannel_ready_size;
|
498
|
+
result->work_serializer_run_time_ms =
|
499
|
+
work_serializer_run_time_ms - other.work_serializer_run_time_ms;
|
500
|
+
result->work_serializer_work_time_ms =
|
501
|
+
work_serializer_work_time_ms - other.work_serializer_work_time_ms;
|
502
|
+
result->work_serializer_work_time_per_item_ms =
|
503
|
+
work_serializer_work_time_per_item_ms -
|
504
|
+
other.work_serializer_work_time_per_item_ms;
|
505
|
+
result->work_serializer_items_per_run =
|
506
|
+
work_serializer_items_per_run - other.work_serializer_items_per_run;
|
412
507
|
return result;
|
413
508
|
}
|
414
509
|
} // namespace grpc_core
|
@@ -30,6 +30,29 @@
|
|
30
30
|
#include "src/core/lib/gprpp/per_cpu.h"
|
31
31
|
|
32
32
|
namespace grpc_core {
|
33
|
+
class HistogramCollector_100000_20;
|
34
|
+
class Histogram_100000_20 {
|
35
|
+
public:
|
36
|
+
static int BucketFor(int value);
|
37
|
+
const uint64_t* buckets() const { return buckets_; }
|
38
|
+
friend Histogram_100000_20 operator-(const Histogram_100000_20& left,
|
39
|
+
const Histogram_100000_20& right);
|
40
|
+
|
41
|
+
private:
|
42
|
+
friend class HistogramCollector_100000_20;
|
43
|
+
uint64_t buckets_[20]{};
|
44
|
+
};
|
45
|
+
class HistogramCollector_100000_20 {
|
46
|
+
public:
|
47
|
+
void Increment(int value) {
|
48
|
+
buckets_[Histogram_100000_20::BucketFor(value)].fetch_add(
|
49
|
+
1, std::memory_order_relaxed);
|
50
|
+
}
|
51
|
+
void Collect(Histogram_100000_20* result) const;
|
52
|
+
|
53
|
+
private:
|
54
|
+
std::atomic<uint64_t> buckets_[20]{};
|
55
|
+
};
|
33
56
|
class HistogramCollector_65536_26;
|
34
57
|
class Histogram_65536_26 {
|
35
58
|
public:
|
@@ -76,51 +99,51 @@ class HistogramCollector_16777216_20 {
|
|
76
99
|
private:
|
77
100
|
std::atomic<uint64_t> buckets_[20]{};
|
78
101
|
};
|
79
|
-
class
|
80
|
-
class
|
102
|
+
class HistogramCollector_80_10;
|
103
|
+
class Histogram_80_10 {
|
81
104
|
public:
|
82
105
|
static int BucketFor(int value);
|
83
106
|
const uint64_t* buckets() const { return buckets_; }
|
84
|
-
friend
|
85
|
-
|
107
|
+
friend Histogram_80_10 operator-(const Histogram_80_10& left,
|
108
|
+
const Histogram_80_10& right);
|
86
109
|
|
87
110
|
private:
|
88
|
-
friend class
|
89
|
-
uint64_t buckets_[
|
111
|
+
friend class HistogramCollector_80_10;
|
112
|
+
uint64_t buckets_[10]{};
|
90
113
|
};
|
91
|
-
class
|
114
|
+
class HistogramCollector_80_10 {
|
92
115
|
public:
|
93
116
|
void Increment(int value) {
|
94
|
-
buckets_[
|
117
|
+
buckets_[Histogram_80_10::BucketFor(value)].fetch_add(
|
95
118
|
1, std::memory_order_relaxed);
|
96
119
|
}
|
97
|
-
void Collect(
|
120
|
+
void Collect(Histogram_80_10* result) const;
|
98
121
|
|
99
122
|
private:
|
100
|
-
std::atomic<uint64_t> buckets_[
|
123
|
+
std::atomic<uint64_t> buckets_[10]{};
|
101
124
|
};
|
102
|
-
class
|
103
|
-
class
|
125
|
+
class HistogramCollector_10000_20;
|
126
|
+
class Histogram_10000_20 {
|
104
127
|
public:
|
105
128
|
static int BucketFor(int value);
|
106
129
|
const uint64_t* buckets() const { return buckets_; }
|
107
|
-
friend
|
108
|
-
|
130
|
+
friend Histogram_10000_20 operator-(const Histogram_10000_20& left,
|
131
|
+
const Histogram_10000_20& right);
|
109
132
|
|
110
133
|
private:
|
111
|
-
friend class
|
112
|
-
uint64_t buckets_[
|
134
|
+
friend class HistogramCollector_10000_20;
|
135
|
+
uint64_t buckets_[20]{};
|
113
136
|
};
|
114
|
-
class
|
137
|
+
class HistogramCollector_10000_20 {
|
115
138
|
public:
|
116
139
|
void Increment(int value) {
|
117
|
-
buckets_[
|
140
|
+
buckets_[Histogram_10000_20::BucketFor(value)].fetch_add(
|
118
141
|
1, std::memory_order_relaxed);
|
119
142
|
}
|
120
|
-
void Collect(
|
143
|
+
void Collect(Histogram_10000_20* result) const;
|
121
144
|
|
122
145
|
private:
|
123
|
-
std::atomic<uint64_t> buckets_[
|
146
|
+
std::atomic<uint64_t> buckets_[20]{};
|
124
147
|
};
|
125
148
|
struct GlobalStats {
|
126
149
|
enum class Counter {
|
@@ -143,6 +166,8 @@ struct GlobalStats {
|
|
143
166
|
kCqNextCreates,
|
144
167
|
kCqCallbackCreates,
|
145
168
|
kWrrUpdates,
|
169
|
+
kWorkSerializerItemsEnqueued,
|
170
|
+
kWorkSerializerItemsDequeued,
|
146
171
|
COUNT
|
147
172
|
};
|
148
173
|
enum class Histogram {
|
@@ -156,6 +181,10 @@ struct GlobalStats {
|
|
156
181
|
kHttp2MetadataSize,
|
157
182
|
kWrrSubchannelListSize,
|
158
183
|
kWrrSubchannelReadySize,
|
184
|
+
kWorkSerializerRunTimeMs,
|
185
|
+
kWorkSerializerWorkTimeMs,
|
186
|
+
kWorkSerializerWorkTimePerItemMs,
|
187
|
+
kWorkSerializerItemsPerRun,
|
159
188
|
COUNT
|
160
189
|
};
|
161
190
|
GlobalStats();
|
@@ -186,6 +215,8 @@ struct GlobalStats {
|
|
186
215
|
uint64_t cq_next_creates;
|
187
216
|
uint64_t cq_callback_creates;
|
188
217
|
uint64_t wrr_updates;
|
218
|
+
uint64_t work_serializer_items_enqueued;
|
219
|
+
uint64_t work_serializer_items_dequeued;
|
189
220
|
};
|
190
221
|
uint64_t counters[static_cast<int>(Counter::COUNT)];
|
191
222
|
};
|
@@ -199,6 +230,10 @@ struct GlobalStats {
|
|
199
230
|
Histogram_65536_26 http2_metadata_size;
|
200
231
|
Histogram_10000_20 wrr_subchannel_list_size;
|
201
232
|
Histogram_10000_20 wrr_subchannel_ready_size;
|
233
|
+
Histogram_100000_20 work_serializer_run_time_ms;
|
234
|
+
Histogram_100000_20 work_serializer_work_time_ms;
|
235
|
+
Histogram_100000_20 work_serializer_work_time_per_item_ms;
|
236
|
+
Histogram_10000_20 work_serializer_items_per_run;
|
202
237
|
HistogramView histogram(Histogram which) const;
|
203
238
|
std::unique_ptr<GlobalStats> Diff(const GlobalStats& other) const;
|
204
239
|
};
|
@@ -272,6 +307,14 @@ class GlobalStatsCollector {
|
|
272
307
|
void IncrementWrrUpdates() {
|
273
308
|
data_.this_cpu().wrr_updates.fetch_add(1, std::memory_order_relaxed);
|
274
309
|
}
|
310
|
+
void IncrementWorkSerializerItemsEnqueued() {
|
311
|
+
data_.this_cpu().work_serializer_items_enqueued.fetch_add(
|
312
|
+
1, std::memory_order_relaxed);
|
313
|
+
}
|
314
|
+
void IncrementWorkSerializerItemsDequeued() {
|
315
|
+
data_.this_cpu().work_serializer_items_dequeued.fetch_add(
|
316
|
+
1, std::memory_order_relaxed);
|
317
|
+
}
|
275
318
|
void IncrementCallInitialSize(int value) {
|
276
319
|
data_.this_cpu().call_initial_size.Increment(value);
|
277
320
|
}
|
@@ -302,6 +345,18 @@ class GlobalStatsCollector {
|
|
302
345
|
void IncrementWrrSubchannelReadySize(int value) {
|
303
346
|
data_.this_cpu().wrr_subchannel_ready_size.Increment(value);
|
304
347
|
}
|
348
|
+
void IncrementWorkSerializerRunTimeMs(int value) {
|
349
|
+
data_.this_cpu().work_serializer_run_time_ms.Increment(value);
|
350
|
+
}
|
351
|
+
void IncrementWorkSerializerWorkTimeMs(int value) {
|
352
|
+
data_.this_cpu().work_serializer_work_time_ms.Increment(value);
|
353
|
+
}
|
354
|
+
void IncrementWorkSerializerWorkTimePerItemMs(int value) {
|
355
|
+
data_.this_cpu().work_serializer_work_time_per_item_ms.Increment(value);
|
356
|
+
}
|
357
|
+
void IncrementWorkSerializerItemsPerRun(int value) {
|
358
|
+
data_.this_cpu().work_serializer_items_per_run.Increment(value);
|
359
|
+
}
|
305
360
|
|
306
361
|
private:
|
307
362
|
struct Data {
|
@@ -324,6 +379,8 @@ class GlobalStatsCollector {
|
|
324
379
|
std::atomic<uint64_t> cq_next_creates{0};
|
325
380
|
std::atomic<uint64_t> cq_callback_creates{0};
|
326
381
|
std::atomic<uint64_t> wrr_updates{0};
|
382
|
+
std::atomic<uint64_t> work_serializer_items_enqueued{0};
|
383
|
+
std::atomic<uint64_t> work_serializer_items_dequeued{0};
|
327
384
|
HistogramCollector_65536_26 call_initial_size;
|
328
385
|
HistogramCollector_16777216_20 tcp_write_size;
|
329
386
|
HistogramCollector_80_10 tcp_write_iov_size;
|
@@ -334,6 +391,10 @@ class GlobalStatsCollector {
|
|
334
391
|
HistogramCollector_65536_26 http2_metadata_size;
|
335
392
|
HistogramCollector_10000_20 wrr_subchannel_list_size;
|
336
393
|
HistogramCollector_10000_20 wrr_subchannel_ready_size;
|
394
|
+
HistogramCollector_100000_20 work_serializer_run_time_ms;
|
395
|
+
HistogramCollector_100000_20 work_serializer_work_time_ms;
|
396
|
+
HistogramCollector_100000_20 work_serializer_work_time_per_item_ms;
|
397
|
+
HistogramCollector_10000_20 work_serializer_items_per_run;
|
337
398
|
};
|
338
399
|
PerCpu<Data> data_{PerCpuOptions().SetCpusPerShard(4).SetMaxShards(32)};
|
339
400
|
};
|
@@ -15,6 +15,8 @@
|
|
15
15
|
#include <grpc/support/port_platform.h>
|
16
16
|
|
17
17
|
#ifdef GPR_APPLE
|
18
|
+
#include <AvailabilityMacros.h>
|
19
|
+
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
18
20
|
|
19
21
|
#include <CoreFoundation/CoreFoundation.h>
|
20
22
|
|
@@ -215,4 +217,5 @@ EventEngine::TaskHandle CFEventEngine::RunAfterInternal(
|
|
215
217
|
} // namespace experimental
|
216
218
|
} // namespace grpc_event_engine
|
217
219
|
|
220
|
+
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
218
221
|
#endif // GPR_APPLE
|
@@ -16,6 +16,8 @@
|
|
16
16
|
#include <grpc/support/port_platform.h>
|
17
17
|
|
18
18
|
#ifdef GPR_APPLE
|
19
|
+
#include <AvailabilityMacros.h>
|
20
|
+
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
19
21
|
|
20
22
|
#include <grpc/event_engine/event_engine.h>
|
21
23
|
|
@@ -81,6 +83,7 @@ class CFEventEngine : public EventEngine,
|
|
81
83
|
} // namespace experimental
|
82
84
|
} // namespace grpc_event_engine
|
83
85
|
|
86
|
+
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
84
87
|
#endif // GPR_APPLE
|
85
88
|
|
86
89
|
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CF_ENGINE_H
|
@@ -15,6 +15,8 @@
|
|
15
15
|
#include <grpc/support/port_platform.h>
|
16
16
|
|
17
17
|
#ifdef GPR_APPLE
|
18
|
+
#include <AvailabilityMacros.h>
|
19
|
+
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
18
20
|
|
19
21
|
#include "src/core/lib/event_engine/cf_engine/cfstream_endpoint.h"
|
20
22
|
#include "src/core/lib/event_engine/trace.h"
|
@@ -351,4 +353,5 @@ void CFStreamEndpointImpl::DoWrite(
|
|
351
353
|
} // namespace experimental
|
352
354
|
} // namespace grpc_event_engine
|
353
355
|
|
356
|
+
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
354
357
|
#endif // GPR_APPLE
|
@@ -16,6 +16,8 @@
|
|
16
16
|
#include <grpc/support/port_platform.h>
|
17
17
|
|
18
18
|
#ifdef GPR_APPLE
|
19
|
+
#include <AvailabilityMacros.h>
|
20
|
+
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
19
21
|
|
20
22
|
#include <CoreFoundation/CoreFoundation.h>
|
21
23
|
|
@@ -141,6 +143,7 @@ class CFStreamEndpoint : public EventEngine::Endpoint {
|
|
141
143
|
} // namespace experimental
|
142
144
|
} // namespace grpc_event_engine
|
143
145
|
|
146
|
+
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
144
147
|
#endif // GPR_APPLE
|
145
148
|
|
146
149
|
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CFSTREAM_ENDPOINT_H
|
@@ -16,6 +16,8 @@
|
|
16
16
|
#include <grpc/support/port_platform.h>
|
17
17
|
|
18
18
|
#ifdef GPR_APPLE
|
19
|
+
#include <AvailabilityMacros.h>
|
20
|
+
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
19
21
|
|
20
22
|
#include <CoreFoundation/CoreFoundation.h>
|
21
23
|
|
@@ -74,6 +76,7 @@ class CFTypeUniqueRef {
|
|
74
76
|
} // namespace experimental
|
75
77
|
} // namespace grpc_event_engine
|
76
78
|
|
79
|
+
#endif // AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
|
77
80
|
#endif // GPR_APPLE
|
78
81
|
|
79
82
|
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_CF_ENGINE_CFTYPE_UNIQUE_REF_H
|