grpc 1.54.3 → 1.59.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +665 -324
- data/include/grpc/event_engine/event_engine.h +32 -46
- data/include/grpc/event_engine/memory_allocator.h +2 -2
- data/include/grpc/grpc_audit_logging.h +96 -0
- data/include/grpc/grpc_security.h +19 -0
- data/include/grpc/impl/channel_arg_names.h +375 -0
- data/include/grpc/impl/grpc_types.h +1 -348
- data/include/grpc/module.modulemap +3 -0
- data/include/grpc/support/json.h +218 -0
- data/include/grpc/support/port_platform.h +103 -24
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +7 -2
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +24 -10
- data/src/core/ext/filters/client_channel/backend_metric.cc +4 -1
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +4 -4
- data/src/core/ext/filters/client_channel/client_channel.cc +564 -178
- data/src/core/ext/filters/client_channel/client_channel.h +75 -23
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +20 -19
- data/src/core/ext/filters/client_channel/client_channel_internal.h +22 -59
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +15 -1
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +2 -2
- data/src/core/ext/filters/client_channel/config_selector.h +9 -36
- data/src/core/ext/filters/client_channel/dynamic_filters.h +5 -3
- data/src/core/ext/filters/client_channel/{http_proxy.cc → http_proxy_mapper.cc} +41 -3
- 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/address_filtering.cc +27 -53
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +23 -9
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +3 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +25 -35
- 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 +103 -142
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +2 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +5 -4
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +4 -2
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +515 -0
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.h +52 -0
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +204 -0
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +6 -9
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +2 -0
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +93 -106
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +2 -2
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +532 -191
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +36 -0
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +16 -45
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +447 -464
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +18 -1
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +73 -129
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +416 -30
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +26 -23
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +76 -6
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +904 -101
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +19 -54
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +73 -126
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +8 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +35 -86
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +23 -69
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +117 -173
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +81 -68
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +28 -96
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +21 -123
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +102 -11
- 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 +58 -44
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +4 -1
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +66 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +27 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +586 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +97 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +32 -0
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +3 -14
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +24 -0
- 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/google_c2p/google_c2p_resolver.cc +30 -28
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +10 -4
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +1 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +25 -13
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +467 -312
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +32 -1
- data/src/core/ext/filters/client_channel/retry_filter.cc +39 -2530
- data/src/core/ext/filters/client_channel/retry_filter.h +92 -1
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.cc +2052 -0
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.h +442 -0
- data/src/core/ext/filters/client_channel/retry_service_config.cc +10 -9
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +40 -90
- data/src/core/ext/filters/client_channel/subchannel.cc +50 -199
- data/src/core/ext/filters/client_channel/subchannel.h +23 -48
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +3 -0
- data/src/core/ext/filters/deadline/deadline_filter.cc +1 -1
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +1 -1
- data/src/core/ext/filters/http/client/http_client_filter.cc +1 -0
- data/src/core/ext/filters/http/client_authority_filter.cc +1 -1
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +8 -7
- data/src/core/ext/filters/http/server/http_server_filter.cc +22 -18
- data/src/core/ext/filters/message_size/message_size_filter.cc +1 -0
- data/src/core/ext/filters/rbac/rbac_filter.cc +40 -111
- data/src/core/ext/filters/rbac/rbac_filter.h +12 -30
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +162 -72
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +6 -8
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +164 -88
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +16 -7
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +1 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +16 -17
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +979 -832
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +21 -0
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +70 -0
- data/src/core/ext/transport/chttp2/transport/decode_huff.cc +6569 -174
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +2278 -441
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +74 -117
- 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 +24 -25
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -4
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +10 -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_encoder.h +1 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +176 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +326 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +640 -547
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +160 -12
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +48 -33
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +19 -5
- data/src/core/ext/transport/chttp2/transport/internal.h +194 -149
- data/src/core/ext/transport/chttp2/transport/{frame.h → legacy_frame.h} +3 -3
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.cc +44 -0
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h +67 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +143 -31
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +90 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +59 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.cc +108 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.h +115 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +120 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.h +88 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/write_size_policy.cc +60 -0
- data/src/core/ext/transport/chttp2/transport/write_size_policy.h +66 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +220 -145
- data/src/core/ext/transport/inproc/inproc_transport.cc +10 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +85 -52
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +407 -182
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +119 -60
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +474 -225
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +88 -55
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +408 -189
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +355 -210
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +1564 -729
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +28 -17
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +140 -51
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +32 -21
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +153 -63
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +25 -14
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +71 -39
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +41 -27
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +41 -27
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +107 -62
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +559 -245
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +20 -19
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +75 -30
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +21 -16
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +253 -147
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +869 -405
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +415 -264
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +1831 -899
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +72 -41
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +279 -149
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +529 -334
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +2009 -1131
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +87 -52
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +340 -233
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +262 -165
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +881 -477
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +137 -80
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +520 -275
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +20 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +43 -37
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +378 -221
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +1160 -611
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +155 -92
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +620 -293
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +30 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +28 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +140 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +277 -167
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +811 -441
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +230 -137
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +1157 -501
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +20 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +53 -38
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +367 -211
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +1107 -647
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +31 -18
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +109 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +32 -19
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +110 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +36 -21
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +141 -65
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +29 -18
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +136 -66
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +20 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +44 -38
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +76 -43
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +258 -128
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +143 -88
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +431 -242
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +113 -62
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +552 -228
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +28 -27
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +173 -118
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +850 -443
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +170 -95
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +857 -375
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +46 -27
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +152 -111
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +37 -18
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +66 -56
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +27 -15
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +85 -46
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +129 -74
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +481 -249
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +161 -84
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +673 -241
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +246 -139
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +926 -434
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +78 -49
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +609 -202
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +1281 -776
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +5414 -2519
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +47 -28
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +157 -85
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +226 -141
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +731 -400
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +41 -27
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +30 -19
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +62 -49
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +25 -14
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +103 -44
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +44 -25
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +252 -101
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +38 -31
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +28 -27
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +40 -23
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +101 -71
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +14 -17
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +41 -24
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +103 -76
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +28 -17
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +88 -51
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +556 -0
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +2702 -0
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +14 -9
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +66 -24
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +58 -37
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +143 -109
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +91 -43
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +379 -168
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +42 -25
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +107 -81
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +66 -22
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +348 -83
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +30 -19
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +65 -51
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +502 -300
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +2235 -1075
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +28 -27
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +33 -21
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +105 -79
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +70 -45
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +186 -139
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +45 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +85 -0
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +32 -21
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +112 -79
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +28 -27
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +8 -11
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +182 -96
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +900 -361
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +54 -33
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +143 -102
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +186 -111
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +809 -420
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +30 -19
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +101 -53
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +8 -7
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +11 -15
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +298 -177
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +1277 -523
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +40 -23
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +181 -76
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +128 -83
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +503 -239
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +20 -13
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +48 -35
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +37 -26
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +117 -69
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +40 -31
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +50 -29
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +85 -63
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +35 -20
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +126 -64
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +20 -13
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +84 -41
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +19 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +43 -33
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +16 -11
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +30 -27
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +44 -27
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +94 -71
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +11 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +17 -22
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +38 -23
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +154 -76
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +29 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +106 -56
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +44 -29
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +132 -92
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +63 -42
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +192 -121
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +78 -45
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +201 -132
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +32 -21
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +66 -53
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +5 -8
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +14 -9
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +21 -19
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +26 -15
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +47 -34
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +41 -22
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +83 -53
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +33 -20
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +84 -57
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +5 -8
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +41 -27
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +21 -14
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +54 -42
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +12 -11
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +22 -20
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +253 -154
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +927 -451
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +297 -180
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +939 -484
- data/src/core/ext/upb-generated/google/api/http.upb.c +66 -35
- data/src/core/ext/upb-generated/google/api/http.upb.h +277 -121
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +20 -13
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +88 -38
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +17 -10
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +31 -23
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +1168 -419
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +4431 -1412
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +17 -10
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +31 -23
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +8 -7
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +11 -15
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +60 -39
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +200 -103
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +17 -10
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +31 -23
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +88 -51
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +149 -107
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +20 -13
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +88 -38
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +57 -34
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +147 -93
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +41 -24
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +110 -60
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +248 -145
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +912 -416
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +32 -19
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +68 -51
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +23 -14
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +37 -30
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +142 -81
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +397 -217
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +49 -26
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +146 -62
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +171 -102
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +848 -299
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +66 -49
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +148 -105
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +24 -17
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +48 -35
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +10 -9
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +23 -14
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +24 -17
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +48 -35
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +21 -16
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +38 -31
- data/src/core/ext/upb-generated/validate/validate.upb.c +843 -455
- data/src/core/ext/upb-generated/validate/validate.upb.h +4340 -1909
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +66 -49
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +148 -105
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +24 -17
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +48 -35
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +10 -9
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +23 -14
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +63 -44
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +130 -92
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +21 -16
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +38 -31
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +14 -9
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +21 -19
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +19 -12
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +38 -31
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +35 -22
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +88 -63
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +24 -17
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +44 -29
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +19 -12
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +38 -31
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +21 -14
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +55 -43
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +42 -25
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +162 -80
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +25 -14
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +58 -39
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +76 -38
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +175 -77
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +19 -12
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +82 -35
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +16 -11
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +28 -27
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +30 -19
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +143 -55
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +8 -7
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +11 -15
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +32 -21
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +154 -64
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +160 -101
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +494 -294
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +83 -52
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +423 -165
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +22 -15
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +45 -37
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +38 -23
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +154 -76
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +35 -22
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +84 -66
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +41 -22
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +83 -53
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +19 -12
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +38 -31
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +89 -77
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +252 -253
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +163 -161
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +130 -119
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +142 -136
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +20 -13
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +39 -31
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +134 -128
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.c +402 -0
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.h +111 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +81 -75
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +64 -48
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +495 -470
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +138 -136
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +12 -13
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +30 -30
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +406 -273
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +21 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +6 -5
- data/src/core/ext/xds/certificate_provider_store.cc +8 -13
- data/src/core/ext/xds/certificate_provider_store.h +1 -1
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +30 -42
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +14 -9
- data/src/core/ext/xds/upb_utils.h +1 -1
- data/src/core/ext/xds/xds_api.cc +41 -18
- data/src/core/ext/xds/xds_api.h +5 -4
- data/src/core/ext/xds/xds_audit_logger_registry.cc +122 -0
- data/src/core/ext/xds/xds_audit_logger_registry.h +68 -0
- data/src/core/ext/xds/xds_bootstrap.cc +3 -3
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +65 -50
- data/src/core/ext/xds/xds_bootstrap_grpc.h +10 -13
- data/src/core/ext/xds/xds_client.cc +35 -16
- data/src/core/ext/xds/xds_client.h +3 -3
- data/src/core/ext/xds/xds_client_grpc.cc +12 -6
- data/src/core/ext/xds/xds_client_grpc.h +16 -2
- data/src/core/ext/xds/xds_client_stats.h +11 -1
- data/src/core/ext/xds/xds_cluster.cc +100 -109
- data/src/core/ext/xds/xds_cluster.h +1 -6
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +15 -11
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +2 -2
- data/src/core/ext/xds/xds_common_types.cc +8 -5
- data/src/core/ext/xds/xds_endpoint.cc +21 -28
- data/src/core/ext/xds/xds_endpoint.h +1 -2
- data/src/core/ext/xds/xds_health_status.cc +0 -17
- data/src/core/ext/xds/xds_health_status.h +5 -25
- data/src/core/ext/xds/xds_http_fault_filter.cc +16 -14
- data/src/core/ext/xds/xds_http_fault_filter.h +1 -1
- data/src/core/ext/xds/xds_http_filters.cc +1 -4
- data/src/core/ext/xds/xds_http_filters.h +3 -2
- data/src/core/ext/xds/xds_http_rbac_filter.cc +152 -72
- data/src/core/ext/xds/xds_http_rbac_filter.h +1 -1
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +16 -16
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +1 -1
- data/src/core/ext/xds/xds_lb_policy_registry.cc +60 -36
- data/src/core/ext/xds/xds_listener.cc +25 -18
- data/src/core/ext/xds/xds_listener.h +14 -4
- data/src/core/ext/xds/xds_resource_type.h +3 -9
- data/src/core/ext/xds/xds_resource_type_impl.h +9 -11
- data/src/core/ext/xds/xds_route_config.cc +62 -19
- data/src/core/ext/xds/xds_route_config.h +2 -2
- data/src/core/ext/xds/xds_server_config_fetcher.cc +53 -28
- data/src/core/ext/xds/xds_transport_grpc.cc +13 -2
- data/src/core/lib/address_utils/parse_address.cc +63 -1
- data/src/core/lib/address_utils/parse_address.h +8 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +46 -1
- data/src/core/lib/address_utils/sockaddr_utils.h +2 -2
- data/src/core/lib/avl/avl.h +15 -173
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +7 -4
- data/src/core/lib/channel/call_tracer.cc +296 -1
- data/src/core/lib/channel/call_tracer.h +39 -1
- data/src/core/lib/channel/channel_args.cc +120 -46
- data/src/core/lib/channel/channel_args.h +52 -4
- data/src/core/lib/channel/channel_trace.cc +16 -12
- data/src/core/lib/channel/channelz.cc +163 -135
- data/src/core/lib/channel/channelz.h +42 -35
- data/src/core/lib/channel/channelz_registry.cc +24 -20
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +103 -35
- data/src/core/lib/channel/promise_based_filter.cc +15 -17
- data/src/core/lib/channel/promise_based_filter.h +5 -1
- data/src/core/lib/compression/compression_internal.cc +8 -7
- data/src/core/lib/config/config_vars.cc +20 -18
- data/src/core/lib/config/config_vars.h +5 -5
- data/src/core/lib/config/core_configuration.cc +2 -1
- data/src/core/lib/config/core_configuration.h +5 -4
- data/src/core/lib/config/load_config.cc +13 -0
- data/src/core/lib/config/load_config.h +6 -0
- data/src/core/lib/debug/event_log.h +1 -1
- data/src/core/lib/debug/stats_data.cc +202 -35
- data/src/core/lib/debug/stats_data.h +103 -1
- data/src/core/lib/debug/trace.cc +31 -56
- data/src/core/lib/debug/trace.h +14 -4
- data/src/core/lib/event_engine/ares_resolver.cc +721 -0
- data/src/core/lib/event_engine/ares_resolver.h +150 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +221 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +89 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +357 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +149 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +82 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +241 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +120 -0
- data/src/core/lib/event_engine/default_event_engine.cc +13 -1
- data/src/core/lib/event_engine/default_event_engine_factory.cc +14 -2
- data/src/core/lib/event_engine/event_engine.cc +0 -12
- data/src/core/lib/event_engine/forkable.cc +62 -43
- data/src/core/lib/event_engine/forkable.h +15 -0
- data/src/core/lib/event_engine/grpc_polled_fd.h +73 -0
- data/src/core/lib/event_engine/handle_containers.h +0 -4
- data/src/core/lib/event_engine/nameser.h +102 -0
- data/src/core/lib/event_engine/poller.h +2 -2
- data/src/core/lib/event_engine/posix.h +4 -0
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +5 -7
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +29 -9
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +10 -1
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +197 -0
- data/src/core/lib/event_engine/posix_engine/lockfree_event.cc +7 -18
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +28 -14
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +12 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +90 -47
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +21 -14
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +41 -31
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +9 -8
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +4 -2
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +50 -4
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +9 -0
- data/src/core/lib/event_engine/posix_engine/timer.h +10 -37
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +1 -1
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +2 -0
- data/src/core/lib/event_engine/shim.cc +9 -1
- data/src/core/lib/event_engine/tcp_socket_utils.cc +67 -7
- data/src/core/lib/event_engine/tcp_socket_utils.h +3 -0
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +58 -0
- data/src/core/lib/event_engine/thread_pool/thread_count.h +176 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool.h +50 -0
- data/src/core/lib/event_engine/{executor/executor.h → thread_pool/thread_pool_factory.cc} +12 -15
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +523 -0
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +223 -0
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.cc +157 -0
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.h +104 -0
- data/src/core/lib/event_engine/trace.cc +1 -0
- data/src/core/lib/event_engine/trace.h +6 -0
- data/src/core/lib/event_engine/windows/iocp.cc +4 -3
- data/src/core/lib/event_engine/windows/iocp.h +3 -3
- data/src/core/lib/event_engine/windows/win_socket.cc +6 -6
- data/src/core/lib/event_engine/windows/win_socket.h +4 -4
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +60 -59
- data/src/core/lib/event_engine/windows/windows_endpoint.h +17 -13
- data/src/core/lib/event_engine/windows/windows_engine.cc +21 -18
- data/src/core/lib/event_engine/windows/windows_engine.h +14 -18
- data/src/core/lib/event_engine/windows/windows_listener.cc +3 -3
- data/src/core/lib/event_engine/windows/windows_listener.h +3 -2
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +63 -0
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +71 -0
- data/src/core/lib/event_engine/work_queue/work_queue.h +62 -0
- data/src/core/lib/experiments/config.cc +121 -30
- data/src/core/lib/experiments/config.h +33 -5
- data/src/core/lib/experiments/experiments.cc +675 -23
- data/src/core/lib/experiments/experiments.h +342 -27
- data/src/core/lib/gpr/log_internal.h +55 -0
- data/src/core/lib/gpr/posix/time.cc +5 -0
- data/src/core/lib/gprpp/crash.cc +10 -0
- data/src/core/lib/gprpp/crash.h +3 -0
- data/src/core/lib/gprpp/dual_ref_counted.h +9 -9
- data/src/core/lib/gprpp/fork.cc +8 -9
- data/src/core/lib/gprpp/fork.h +7 -6
- data/src/core/lib/gprpp/if_list.h +4530 -0
- 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/orphanable.h +3 -3
- data/src/core/lib/gprpp/per_cpu.cc +35 -0
- data/src/core/lib/gprpp/per_cpu.h +61 -9
- data/src/core/lib/gprpp/ref_counted.h +9 -7
- data/src/core/lib/gprpp/ref_counted_ptr.h +63 -0
- data/src/core/lib/gprpp/ref_counted_string.cc +44 -0
- data/src/core/lib/gprpp/ref_counted_string.h +146 -0
- data/src/core/lib/gprpp/sorted_pack.h +3 -12
- data/src/core/lib/gprpp/status_helper.cc +2 -2
- data/src/core/lib/gprpp/status_helper.h +16 -15
- data/src/core/lib/gprpp/time.cc +1 -0
- data/src/core/lib/gprpp/time.h +13 -1
- data/src/core/lib/gprpp/type_list.h +32 -0
- data/src/core/lib/gprpp/validation_errors.cc +8 -3
- data/src/core/lib/gprpp/validation_errors.h +16 -9
- data/src/core/lib/gprpp/work_serializer.cc +320 -12
- data/src/core/lib/gprpp/work_serializer.h +30 -9
- data/src/core/lib/http/httpcli.h +6 -9
- data/src/core/lib/http/httpcli_security_connector.cc +1 -0
- data/src/core/lib/iomgr/buffer_list.cc +2 -0
- data/src/core/lib/iomgr/buffer_list.h +0 -1
- data/src/core/lib/iomgr/cfstream_handle.cc +1 -1
- data/src/core/lib/iomgr/combiner.cc +57 -15
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/endpoint_cfstream.cc +10 -8
- data/src/core/lib/iomgr/error.cc +32 -2
- data/src/core/lib/iomgr/error.h +9 -10
- data/src/core/lib/iomgr/ev_apple.cc +12 -12
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +15 -10
- data/src/core/lib/iomgr/ev_poll_posix.cc +6 -5
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +24 -27
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +66 -19
- data/src/core/lib/iomgr/iocp_windows.cc +24 -3
- data/src/core/lib/iomgr/iocp_windows.h +11 -0
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +1 -1
- 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/pollset.h +4 -5
- data/src/core/lib/iomgr/port.h +24 -0
- data/src/core/lib/iomgr/resolve_address.cc +13 -1
- data/src/core/lib/iomgr/resolve_address.h +17 -3
- data/src/core/lib/iomgr/sockaddr_posix.h +7 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +33 -2
- data/src/core/lib/iomgr/socket_utils_posix.cc +5 -0
- data/src/core/lib/iomgr/socket_utils_posix.h +9 -0
- data/src/core/lib/iomgr/socket_windows.cc +61 -7
- data/src/core/lib/iomgr/socket_windows.h +9 -2
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +14 -3
- data/src/core/lib/iomgr/tcp_client_posix.cc +8 -1
- data/src/core/lib/iomgr/tcp_posix.cc +41 -21
- data/src/core/lib/iomgr/tcp_server_posix.cc +145 -106
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +1 -1
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +5 -2
- data/src/core/lib/iomgr/tcp_server_windows.cc +1 -1
- data/src/core/lib/iomgr/tcp_windows.cc +1 -3
- data/src/core/lib/iomgr/timer_generic.cc +17 -16
- data/src/core/lib/iomgr/vsock.cc +59 -0
- data/src/core/lib/iomgr/vsock.h +38 -0
- data/src/core/lib/iomgr/wakeup_fd_posix.h +3 -6
- data/src/core/lib/json/json.h +2 -218
- data/src/core/lib/json/json_object_loader.cc +24 -25
- data/src/core/lib/json/json_object_loader.h +30 -18
- data/src/core/lib/json/json_reader.cc +69 -42
- data/src/core/lib/json/json_reader.h +34 -0
- data/src/core/lib/json/json_util.cc +10 -15
- data/src/core/lib/json/json_util.h +5 -4
- data/src/core/lib/json/json_writer.cc +24 -25
- data/src/core/lib/json/json_writer.h +33 -0
- data/src/core/lib/load_balancing/delegating_helper.h +115 -0
- data/src/core/lib/load_balancing/lb_policy.h +43 -9
- data/src/core/lib/load_balancing/lb_policy_registry.cc +9 -8
- data/src/core/lib/load_balancing/subchannel_interface.h +6 -0
- data/src/core/lib/matchers/matchers.cc +3 -4
- data/src/core/lib/matchers/matchers.h +2 -1
- data/src/core/lib/promise/activity.cc +5 -0
- data/src/core/lib/promise/activity.h +10 -0
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/detail/basic_seq.h +1 -372
- data/src/core/lib/promise/detail/promise_factory.h +1 -1
- data/src/core/lib/promise/detail/seq_state.h +2494 -0
- data/src/core/lib/promise/latch.h +1 -0
- data/src/core/lib/promise/loop.h +8 -5
- data/src/core/lib/promise/party.cc +31 -13
- data/src/core/lib/promise/party.h +12 -3
- data/src/core/lib/promise/pipe.h +40 -26
- data/src/core/lib/promise/poll.h +4 -6
- data/src/core/lib/promise/prioritized_race.h +95 -0
- data/src/core/lib/promise/seq.h +19 -2
- data/src/core/lib/promise/sleep.cc +2 -1
- data/src/core/lib/promise/sleep.h +5 -10
- data/src/core/lib/promise/try_seq.h +34 -2
- data/src/core/lib/resolver/resolver_factory.h +3 -2
- data/src/core/lib/resolver/server_address.cc +9 -102
- data/src/core/lib/resolver/server_address.h +11 -70
- data/src/core/lib/resource_quota/api.cc +1 -0
- data/src/core/lib/resource_quota/arena.cc +2 -0
- data/src/core/lib/resource_quota/arena.h +42 -8
- data/src/core/lib/resource_quota/memory_quota.cc +65 -10
- data/src/core/lib/resource_quota/memory_quota.h +6 -4
- data/src/core/lib/resource_quota/resource_quota.h +1 -0
- data/src/core/lib/security/authorization/audit_logging.cc +98 -0
- data/src/core/lib/security/authorization/audit_logging.h +73 -0
- data/src/core/lib/security/authorization/authorization_policy_provider.h +1 -1
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +47 -2
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +18 -1
- data/src/core/lib/security/authorization/rbac_policy.cc +36 -4
- data/src/core/lib/security/authorization/rbac_policy.h +19 -2
- data/src/core/lib/security/authorization/stdout_logger.cc +75 -0
- data/src/core/lib/security/authorization/stdout_logger.h +61 -0
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +8 -4
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +8 -18
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +14 -8
- data/src/core/lib/security/credentials/channel_creds_registry.h +51 -27
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +169 -9
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +1 -1
- data/src/core/lib/security/credentials/composite/composite_credentials.h +3 -1
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +54 -49
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +8 -0
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +104 -65
- data/src/core/lib/security/credentials/external/external_account_credentials.h +6 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +23 -21
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +29 -27
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +30 -38
- data/src/core/lib/security/credentials/fake/fake_credentials.h +28 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +6 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +36 -16
- data/src/core/lib/security/credentials/jwt/json_token.h +4 -0
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +10 -5
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +82 -38
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +18 -16
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +116 -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 -55
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +8 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +5 -1
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +2 -1
- data/src/core/lib/security/credentials/tls/tls_credentials.h +3 -1
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +1 -0
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +2 -5
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +1 -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/ssl_utils.cc +3 -1
- data/src/core/lib/security/security_connector/ssl_utils.h +1 -1
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +3 -15
- data/src/core/lib/security/transport/client_auth_filter.cc +8 -5
- data/src/core/lib/security/transport/security_handshaker.cc +1 -0
- data/src/core/lib/security/transport/server_auth_filter.cc +2 -0
- data/src/core/lib/security/util/json_util.cc +6 -5
- data/src/core/lib/service_config/service_config_call_data.h +54 -20
- data/src/core/lib/service_config/service_config_impl.cc +13 -6
- data/src/core/lib/slice/slice.h +24 -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 +244 -100
- data/src/core/lib/surface/call.h +5 -5
- data/src/core/lib/surface/channel.cc +8 -4
- data/src/core/lib/surface/channel_init.h +3 -2
- data/src/core/lib/surface/completion_queue.cc +18 -3
- data/src/core/lib/surface/init.cc +1 -0
- data/src/core/lib/surface/server.cc +151 -80
- data/src/core/lib/surface/server.h +19 -21
- data/src/core/lib/surface/validate_metadata.cc +37 -22
- data/src/core/lib/surface/validate_metadata.h +13 -3
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.cc +16 -15
- data/src/core/lib/transport/batch_builder.h +48 -36
- data/src/core/lib/transport/metadata_batch.cc +13 -7
- data/src/core/lib/transport/metadata_batch.h +118 -108
- data/src/core/lib/transport/metadata_compression_traits.h +67 -0
- data/src/core/lib/transport/parsed_metadata.h +32 -20
- data/src/core/lib/transport/simple_slice_based_metadata.h +54 -0
- data/src/core/lib/transport/transport.h +30 -11
- data/src/core/plugin_registry/grpc_plugin_registry.cc +2 -6
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +2 -0
- data/src/core/tsi/alts/crypt/aes_gcm.cc +27 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +4 -6
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +1 -2
- data/src/core/tsi/ssl_transport_security.cc +51 -9
- data/src/core/tsi/ssl_transport_security.h +17 -1
- data/src/ruby/bin/math_pb.rb +24 -18
- data/src/ruby/ext/grpc/extconf.rb +27 -27
- data/src/ruby/ext/grpc/rb_call.c +62 -39
- data/src/ruby/ext/grpc/rb_call_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_channel.c +109 -84
- data/src/ruby/ext/grpc/rb_channel.h +1 -0
- data/src/ruby/ext/grpc/rb_channel_args.c +18 -2
- data/src/ruby/ext/grpc/rb_channel_args.h +4 -0
- data/src/ruby/ext/grpc/rb_channel_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_compression_options.c +0 -1
- data/src/ruby/ext/grpc/rb_event_thread.c +22 -6
- data/src/ruby/ext/grpc/rb_event_thread.h +1 -0
- data/src/ruby/ext/grpc/rb_grpc.c +192 -30
- data/src/ruby/ext/grpc/rb_grpc.h +8 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +3 -0
- data/src/ruby/ext/grpc/rb_server.c +62 -45
- data/src/ruby/ext/grpc/rb_server_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +0 -1
- data/src/ruby/lib/grpc/generic/active_call.rb +9 -14
- data/src/ruby/lib/grpc/generic/bidi_call.rb +2 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +24 -13
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +24 -3
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +28 -111
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +25 -2
- data/src/ruby/pb/test/client.rb +16 -0
- data/src/ruby/spec/generic/rpc_server_spec.rb +3 -3
- data/third_party/abseil-cpp/absl/algorithm/container.h +3 -2
- data/third_party/abseil-cpp/absl/base/attributes.h +58 -5
- data/third_party/abseil-cpp/absl/base/call_once.h +1 -1
- data/third_party/abseil-cpp/absl/base/casts.h +8 -8
- data/third_party/abseil-cpp/absl/base/config.h +89 -106
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +26 -1
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +2 -2
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +50 -39
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +2 -1
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +17 -18
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +32 -3
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +24 -4
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +31 -73
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +9 -8
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +11 -11
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.cc +23 -32
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +2 -3
- data/third_party/abseil-cpp/absl/base/options.h +1 -1
- data/third_party/abseil-cpp/absl/base/policy_checks.h +3 -3
- data/third_party/abseil-cpp/absl/base/prefetch.h +198 -0
- data/third_party/abseil-cpp/absl/container/fixed_array.h +54 -29
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +5 -1
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +6 -2
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +167 -79
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +3 -21
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +46 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +2 -0
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +85 -26
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +35 -18
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +70 -29
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +437 -236
- data/third_party/abseil-cpp/absl/crc/crc32c.h +8 -1
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +14 -8
- data/third_party/abseil-cpp/absl/crc/internal/crc.cc +4 -35
- data/third_party/abseil-cpp/absl/crc/internal/crc.h +2 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.h +4 -4
- data/third_party/abseil-cpp/absl/crc/internal/crc_internal.h +8 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +17 -19
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +8 -8
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +2 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +59 -23
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +1 -1
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +43 -19
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +3 -0
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/commandlineflag.cc +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +2 -2
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +16 -15
- data/third_party/abseil-cpp/absl/flags/internal/flag_msvc.inc +1 -1
- data/third_party/abseil-cpp/absl/flags/marshalling.cc +43 -2
- data/third_party/abseil-cpp/absl/flags/marshalling.h +5 -0
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +9 -1
- data/third_party/abseil-cpp/absl/functional/bind_front.h +1 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +3 -3
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +37 -24
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +19 -9
- data/third_party/abseil-cpp/absl/hash/hash.h +7 -4
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +38 -15
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +6 -0
- data/third_party/abseil-cpp/absl/meta/type_traits.h +48 -373
- data/third_party/abseil-cpp/absl/numeric/bits.h +4 -4
- data/third_party/abseil-cpp/absl/numeric/int128.cc +20 -8
- data/third_party/abseil-cpp/absl/numeric/int128.h +36 -39
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +0 -3
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +47 -30
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +4 -3
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/platform.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +4 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +1 -1
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +1 -1
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +4 -0
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +12 -24
- data/third_party/abseil-cpp/absl/status/status.cc +11 -7
- data/third_party/abseil-cpp/absl/status/status.h +11 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +22 -8
- data/third_party/abseil-cpp/absl/strings/ascii.cc +54 -6
- data/third_party/abseil-cpp/absl/strings/charconv.cc +21 -4
- data/third_party/abseil-cpp/absl/strings/charconv.h +2 -2
- data/third_party/abseil-cpp/absl/strings/cord.cc +1 -2
- data/third_party/abseil-cpp/absl/strings/cord.h +32 -5
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +23 -1
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +18 -0
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +2 -5
- data/third_party/abseil-cpp/absl/strings/escaping.cc +10 -32
- data/third_party/abseil-cpp/absl/strings/escaping.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +2 -4
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +3 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -1
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +15 -13
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +13 -4
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +5 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.h +4 -7
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +46 -20
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +1 -34
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +2 -1
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +23 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +2 -77
- data/third_party/abseil-cpp/absl/strings/internal/memutil.h +4 -112
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +10 -31
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +8 -8
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +5 -20
- data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +9 -9
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +56 -6
- data/third_party/abseil-cpp/absl/strings/match.cc +87 -0
- data/third_party/abseil-cpp/absl/strings/match.h +19 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +154 -122
- data/third_party/abseil-cpp/absl/strings/numbers.h +1 -6
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +7 -50
- data/third_party/abseil-cpp/absl/strings/str_cat.h +83 -15
- data/third_party/abseil-cpp/absl/strings/str_format.h +6 -3
- data/third_party/abseil-cpp/absl/strings/str_split.cc +9 -6
- data/third_party/abseil-cpp/absl/strings/string_view.cc +26 -4
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +5 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +63 -43
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.cc +111 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.h +63 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +11 -7
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.cc +225 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +122 -114
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +12 -8
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +10 -1
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.cc +167 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.h +60 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.cc +122 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.h +65 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.cc +91 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.h +56 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +19 -113
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.cc +42 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.h +90 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.cc +151 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.h +70 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +407 -411
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +152 -118
- data/third_party/abseil-cpp/absl/time/clock.cc +6 -7
- data/third_party/abseil-cpp/absl/time/duration.cc +24 -26
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +1 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +3 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.cc +8 -6
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +6 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.cc +4 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.h +4 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +322 -295
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.h +8 -17
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +51 -33
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.h +7 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +128 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.h +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +5 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +34 -34
- data/third_party/abseil-cpp/absl/time/time.cc +9 -2
- data/third_party/abseil-cpp/absl/time/time.h +115 -15
- data/third_party/abseil-cpp/absl/types/internal/optional.h +0 -52
- data/third_party/abseil-cpp/absl/types/internal/span.h +2 -2
- data/third_party/abseil-cpp/absl/types/internal/variant.h +2 -2
- data/third_party/abseil-cpp/absl/types/optional.h +15 -13
- data/third_party/abseil-cpp/absl/types/span.h +1 -2
- data/third_party/boringssl-with-bazel/err_data.c +554 -553
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +9 -8
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strnid.c +6 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +34 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +11 -4
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +10 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +7 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +9 -7
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio_mem.c +40 -55
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/bio/errno.c +92 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +14 -54
- data/third_party/boringssl-with-bazel/src/crypto/bio/file.c +23 -22
- data/third_party/boringssl-with-bazel/src/crypto/bio/internal.h +16 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +11 -2
- data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +31 -22
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +19 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +8 -1
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_tls.c +29 -26
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/tls_cbc.c +189 -13
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +31 -192
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +3 -7
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_apple.c +3 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_fuchsia.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/{cpu_aarch64_freebsd.c → cpu_aarch64_openbsd.c} +23 -24
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_sysreg.c +93 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_win.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_freebsd.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +55 -50
- data/third_party/boringssl-with-bazel/src/crypto/{cpu_arm.c → curve25519/curve25519_64_adx.c} +4 -24
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_tables.h +2834 -7442
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h +26 -8
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c +5 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +20 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_asn1.c +110 -72
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_derive.c +4 -3
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +42 -34
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +17 -11
- data/third_party/boringssl-with-bazel/src/crypto/ecdh_extra/ecdh_extra.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/err/err.c +23 -21
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +35 -12
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +2 -4
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec_asn1.c +3 -7
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/evp/pbkdf.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/evp/print.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/ex_data.c +34 -72
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +2 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div.c +12 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +5 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +17 -18
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +51 -15
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/delocate.h +5 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c +37 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +41 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/internal.h +9 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/builtin_curves.h +277 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +204 -428
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_montgomery.c +31 -64
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/felem.c +17 -13
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h +105 -143
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/oct.c +19 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +16 -18
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-nistz.c +27 -30
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256.c +23 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256_table.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/scalar.c +24 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple.c +21 -37
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple_mul.c +31 -31
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +16 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/ecdh.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +11 -5
- data/third_party/boringssl-with-bazel/src/crypto/{hkdf → fipsmodule/hkdf}/hkdf.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cbc.c +2 -10
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ctr.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm.c +115 -133
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm_nohw.c +12 -14
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/internal.h +57 -47
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ofb.c +1 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/polyval.c +27 -28
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +40 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +21 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +38 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/urandom.c +2 -41
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/internal.h +76 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/padding.c +5 -288
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +143 -83
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +126 -233
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +113 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/service_indicator.c +4 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/kdf.c +33 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +169 -6
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +216 -87
- data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +32 -2
- data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +11 -12
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +834 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +25 -46
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +6 -13
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +18 -14
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/p5_pbev2.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +8 -5
- data/third_party/boringssl-with-bazel/src/crypto/pool/internal.h +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +6 -12
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/getentropy.c +52 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/{fuchsia.c → ios.c} +8 -8
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/trusty.c +38 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +41 -19
- data/third_party/boringssl-with-bazel/src/crypto/{refcount_c11.c → refcount.c} +11 -17
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/internal.h +77 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_crypt.c +568 -0
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +152 -72
- data/third_party/boringssl-with-bazel/src/crypto/thread_none.c +0 -8
- data/third_party/boringssl-with-bazel/src/crypto/thread_pthread.c +6 -35
- data/third_party/boringssl-with-bazel/src/crypto/thread_win.c +5 -26
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +62 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +240 -72
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +35 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +588 -130
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_sign.c +27 -18
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +10 -20
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +0 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +3 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/name_print.c +17 -39
- data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +18 -14
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +39 -48
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +1 -141
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_d2.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +19 -25
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +72 -23
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +8 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +8 -12
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +22 -24
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +1 -72
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +22 -29
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +9 -7
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +2 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +33 -46
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +3 -5
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +20 -52
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +14 -26
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +11 -9
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +17 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +5 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/aead.h +5 -7
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +4 -119
- data/third_party/boringssl-with-bazel/src/include/openssl/asm_base.h +207 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +11 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +37 -112
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +19 -13
- data/third_party/boringssl-with-bazel/src/include/openssl/blake2.h +1 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +0 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/chacha.h +6 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +5 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +0 -21
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +28 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/ec_key.h +19 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +14 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +34 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +128 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +2 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +8 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +0 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +13 -14
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +91 -62
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +26 -19
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +275 -96
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +242 -223
- data/third_party/boringssl-with-bazel/src/include/openssl/target.h +201 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/thread.h +1 -25
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +4 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +8 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +760 -614
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +45 -12
- data/third_party/boringssl-with-bazel/src/ssl/encrypted_client_hello.cc +11 -6
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +10 -68
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +20 -20
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +33 -18
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +1 -1
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +86 -46
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +37 -18
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +8 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +209 -209
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +6 -6
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +76 -118
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +209 -33
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +17 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +19 -21
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +27 -19
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +2 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +2 -3
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +5 -21
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -2
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_adx.h +691 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_msvc.h +1281 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64_msvc.h +2002 -0
- data/third_party/cares/cares/include/ares.h +23 -1
- data/third_party/cares/cares/{src/lib → include}/ares_nameser.h +9 -7
- data/third_party/cares/cares/include/ares_rules.h +2 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares__addrinfo2hostent.c +266 -0
- data/third_party/cares/cares/src/lib/ares__addrinfo_localhost.c +240 -0
- data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +49 -80
- data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +37 -43
- data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +12 -4
- data/third_party/cares/cares/src/lib/ares_data.c +16 -0
- data/third_party/cares/cares/src/lib/ares_data.h +7 -0
- data/third_party/cares/cares/src/lib/ares_destroy.c +8 -0
- data/third_party/cares/cares/src/lib/ares_expand_name.c +17 -6
- data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +1 -0
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +156 -78
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +130 -326
- data/third_party/cares/cares/src/lib/ares_init.c +97 -485
- data/third_party/cares/cares/src/lib/ares_library_init.c +2 -89
- data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +23 -142
- data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +22 -142
- data/third_party/cares/cares/src/lib/ares_parse_uri_reply.c +184 -0
- data/third_party/cares/cares/src/lib/ares_private.h +30 -16
- data/third_party/cares/cares/src/lib/ares_process.c +55 -16
- data/third_party/cares/cares/src/lib/ares_query.c +1 -35
- data/third_party/cares/cares/src/lib/ares_rand.c +279 -0
- data/third_party/cares/cares/src/lib/ares_send.c +5 -7
- data/third_party/cares/cares/src/lib/ares_strdup.c +12 -19
- data/third_party/cares/cares/src/lib/ares_strsplit.c +44 -128
- data/third_party/cares/cares/src/lib/ares_strsplit.h +9 -10
- data/third_party/cares/cares/src/lib/inet_net_pton.c +78 -116
- data/third_party/cares/cares/src/tools/ares_getopt.h +53 -0
- data/third_party/upb/upb/{table_internal.h → alloc.h} +6 -6
- data/third_party/upb/upb/arena.h +4 -193
- data/third_party/upb/upb/array.h +4 -51
- data/third_party/upb/upb/base/descriptor_constants.h +104 -0
- data/third_party/upb/upb/base/log2.h +57 -0
- data/third_party/upb/upb/{status.c → base/status.c} +2 -7
- data/third_party/upb/upb/base/status.h +66 -0
- data/third_party/upb/upb/base/string_view.h +75 -0
- data/third_party/upb/upb/{array.c → collections/array.c} +73 -36
- data/third_party/upb/upb/collections/array.h +91 -0
- data/third_party/upb/upb/collections/array_internal.h +135 -0
- data/third_party/upb/upb/{map.c → collections/map.c} +60 -26
- data/third_party/upb/upb/collections/map.h +140 -0
- data/third_party/upb/upb/collections/map_gencode_util.h +78 -0
- data/third_party/upb/upb/collections/map_internal.h +170 -0
- data/third_party/upb/upb/collections/map_sorter.c +166 -0
- data/third_party/upb/upb/collections/map_sorter_internal.h +109 -0
- data/third_party/upb/upb/{message_value.h → collections/message_value.h} +19 -13
- data/third_party/upb/upb/decode.h +3 -62
- data/third_party/upb/upb/def.h +4 -384
- data/third_party/upb/upb/def.hpp +3 -411
- data/third_party/upb/upb/encode.h +3 -48
- data/third_party/upb/upb/extension_registry.h +3 -52
- data/third_party/upb/upb/generated_code_support.h +54 -0
- data/third_party/upb/upb/{table.c → hash/common.c} +55 -108
- data/third_party/upb/upb/hash/common.h +200 -0
- data/third_party/upb/upb/hash/int_table.h +102 -0
- data/third_party/upb/upb/hash/str_table.h +162 -0
- data/third_party/upb/upb/{json_decode.c → json/decode.c} +63 -98
- data/third_party/upb/upb/{json_decode.h → json/decode.h} +8 -3
- data/third_party/upb/upb/{json_encode.c → json/encode.c} +69 -45
- data/third_party/upb/upb/{json_encode.h → json/encode.h} +8 -3
- data/third_party/upb/upb/lex/atoi.c +68 -0
- data/third_party/upb/upb/lex/atoi.h +53 -0
- data/third_party/upb/upb/{upb.c → lex/round_trip.c} +2 -11
- data/third_party/upb/upb/{internal/upb.h → lex/round_trip.h} +17 -30
- data/third_party/upb/upb/lex/strtod.c +97 -0
- data/third_party/upb/upb/lex/strtod.h +46 -0
- data/third_party/upb/upb/lex/unicode.c +57 -0
- data/third_party/upb/upb/lex/unicode.h +77 -0
- data/third_party/upb/upb/map.h +4 -85
- data/third_party/upb/upb/mem/alloc.c +47 -0
- data/third_party/upb/upb/mem/alloc.h +98 -0
- data/third_party/upb/upb/mem/arena.c +367 -0
- data/third_party/upb/upb/mem/arena.h +160 -0
- data/third_party/upb/upb/mem/arena_internal.h +114 -0
- data/third_party/upb/upb/message/accessors.c +92 -0
- data/third_party/upb/upb/message/accessors.h +400 -0
- data/third_party/upb/upb/message/accessors_internal.h +391 -0
- data/third_party/upb/upb/message/extension_internal.h +83 -0
- data/third_party/upb/upb/message/internal/map_entry.h +64 -0
- data/third_party/upb/upb/message/internal.h +131 -0
- data/third_party/upb/upb/message/message.c +174 -0
- data/third_party/upb/upb/message/message.h +69 -0
- 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_descriptor/decode.c +875 -0
- data/third_party/upb/upb/mini_descriptor/decode.h +140 -0
- 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_descriptor/internal/encode.c +326 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.h +110 -0
- data/third_party/upb/upb/{mini_table.hpp → mini_descriptor/internal/encode.hpp} +32 -8
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +50 -0
- data/third_party/upb/upb/mini_descriptor/internal/wire_constants.h +91 -0
- 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/enum.h +50 -0
- data/third_party/upb/upb/mini_table/extension.h +40 -0
- data/third_party/upb/upb/{extension_registry.c → mini_table/extension_registry.c} +27 -24
- data/third_party/upb/upb/mini_table/extension_registry.h +105 -0
- data/third_party/upb/upb/mini_table/field.h +118 -0
- data/third_party/upb/upb/{collections.h → mini_table/file.h} +6 -7
- data/third_party/upb/upb/mini_table/internal/enum.h +76 -0
- data/third_party/upb/upb/mini_table/internal/extension.h +47 -0
- data/third_party/upb/upb/mini_table/internal/field.h +136 -0
- data/third_party/upb/upb/mini_table/internal/file.h +49 -0
- data/third_party/upb/upb/mini_table/internal/message.c +39 -0
- data/third_party/upb/upb/mini_table/internal/message.h +113 -0
- data/third_party/upb/upb/mini_table/internal/sub.h +39 -0
- data/third_party/upb/upb/mini_table/message.c +97 -0
- data/third_party/upb/upb/mini_table/message.h +105 -0
- data/third_party/upb/upb/mini_table/sub.h +35 -0
- data/third_party/upb/upb/msg.h +3 -38
- data/third_party/upb/upb/port/atomic.h +101 -0
- data/third_party/upb/upb/{port_def.inc → port/def.inc} +94 -27
- data/third_party/upb/upb/{port_undef.inc → port/undef.inc} +13 -3
- data/third_party/upb/upb/{internal → port}/vsnprintf_compat.h +5 -7
- data/third_party/upb/upb/reflection/common.h +67 -0
- data/third_party/upb/upb/reflection/def.h +42 -0
- data/third_party/upb/upb/reflection/def.hpp +622 -0
- data/third_party/upb/upb/reflection/def_builder.c +357 -0
- data/third_party/upb/upb/reflection/def_builder_internal.h +157 -0
- data/third_party/upb/upb/reflection/def_pool.c +462 -0
- data/third_party/upb/upb/reflection/def_pool.h +108 -0
- data/third_party/upb/upb/reflection/def_pool_internal.h +77 -0
- data/third_party/upb/upb/reflection/def_type.c +50 -0
- data/third_party/upb/upb/reflection/def_type.h +81 -0
- data/third_party/upb/upb/reflection/desc_state.c +53 -0
- data/third_party/upb/upb/reflection/desc_state_internal.h +64 -0
- data/third_party/upb/upb/reflection/enum_def.c +310 -0
- data/third_party/upb/upb/reflection/enum_def.h +80 -0
- data/third_party/upb/upb/reflection/enum_def_internal.h +56 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.c +84 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.h +51 -0
- data/third_party/upb/upb/reflection/enum_reserved_range_internal.h +55 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +144 -0
- data/third_party/upb/upb/reflection/enum_value_def.h +57 -0
- data/third_party/upb/upb/reflection/enum_value_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/extension_range.c +93 -0
- data/third_party/upb/upb/reflection/extension_range.h +55 -0
- data/third_party/upb/upb/reflection/extension_range_internal.h +54 -0
- data/third_party/upb/upb/reflection/field_def.c +931 -0
- data/third_party/upb/upb/reflection/field_def.h +91 -0
- data/third_party/upb/upb/reflection/field_def_internal.h +76 -0
- data/third_party/upb/upb/reflection/file_def.c +370 -0
- data/third_party/upb/upb/reflection/file_def.h +77 -0
- data/third_party/upb/upb/reflection/file_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/message.c +233 -0
- data/third_party/upb/upb/reflection/message.h +102 -0
- data/third_party/upb/upb/reflection/message.hpp +37 -0
- data/third_party/upb/upb/reflection/message_def.c +720 -0
- data/third_party/upb/upb/reflection/message_def.h +174 -0
- data/third_party/upb/upb/reflection/message_def_internal.h +63 -0
- data/third_party/upb/upb/reflection/message_reserved_range.c +81 -0
- data/third_party/upb/upb/reflection/message_reserved_range.h +51 -0
- data/third_party/upb/upb/reflection/message_reserved_range_internal.h +55 -0
- data/third_party/upb/upb/reflection/method_def.c +124 -0
- data/third_party/upb/upb/reflection/method_def.h +59 -0
- data/third_party/upb/upb/reflection/method_def_internal.h +53 -0
- data/third_party/upb/upb/reflection/oneof_def.c +226 -0
- data/third_party/upb/upb/reflection/oneof_def.h +66 -0
- data/third_party/upb/upb/reflection/oneof_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/service_def.c +128 -0
- data/third_party/upb/upb/reflection/service_def.h +60 -0
- data/third_party/upb/upb/reflection/service_def_internal.h +53 -0
- data/third_party/upb/upb/reflection.h +4 -78
- data/third_party/upb/upb/reflection.hpp +3 -7
- data/third_party/upb/upb/status.h +4 -34
- data/third_party/upb/upb/string_view.h +36 -0
- data/third_party/upb/upb/{text_encode.c → text/encode.c} +74 -70
- data/third_party/upb/upb/text/encode.h +69 -0
- data/third_party/upb/upb/text_encode.h +4 -32
- data/third_party/upb/upb/upb.h +6 -151
- data/third_party/upb/upb/upb.hpp +10 -18
- data/third_party/upb/upb/wire/common.h +44 -0
- data/third_party/upb/upb/wire/common_internal.h +50 -0
- data/third_party/upb/upb/wire/decode.c +1382 -0
- data/third_party/upb/upb/wire/decode.h +148 -0
- data/third_party/upb/upb/{decode_fast.c → wire/decode_fast.c} +184 -225
- data/third_party/upb/upb/{decode_fast.h → wire/decode_fast.h} +21 -7
- data/third_party/upb/upb/{internal/decode.h → wire/decode_internal.h} +44 -92
- data/third_party/upb/upb/{encode.c → wire/encode.c} +134 -105
- data/third_party/upb/upb/wire/encode.h +92 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.c +39 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +425 -0
- data/third_party/upb/upb/wire/reader.c +67 -0
- data/third_party/upb/upb/wire/reader.h +227 -0
- data/third_party/upb/upb/wire/swap_internal.h +63 -0
- data/third_party/upb/upb/wire/types.h +41 -0
- data/third_party/{upb/third_party/utf8_range → utf8_range}/range2-neon.c +1 -1
- data/third_party/{upb/third_party/utf8_range → utf8_range}/utf8_range.h +12 -0
- metadata +286 -87
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +0 -175
- data/src/core/ext/filters/client_channel/health/health_check_client.h +0 -43
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.cc +0 -42
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.h +0 -64
- data/src/core/ext/transport/chttp2/transport/context_list.cc +0 -71
- data/src/core/ext/transport/chttp2/transport/context_list.h +0 -54
- data/src/core/ext/transport/chttp2/transport/stream_map.cc +0 -177
- data/src/core/ext/transport/chttp2/transport/stream_map.h +0 -68
- data/src/core/lib/event_engine/thread_pool.cc +0 -253
- data/src/core/lib/event_engine/thread_pool.h +0 -141
- data/src/core/lib/promise/detail/basic_join.h +0 -197
- data/src/core/lib/promise/detail/switch.h +0 -1455
- data/src/core/lib/promise/try_join.h +0 -82
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +0 -403
- data/third_party/boringssl-with-bazel/src/crypto/refcount_lock.c +0 -52
- data/third_party/cares/cares/src/lib/ares_library_init.h +0 -43
- data/third_party/re2/util/benchmark.h +0 -156
- data/third_party/re2/util/flags.h +0 -26
- data/third_party/re2/util/malloc_counter.h +0 -19
- data/third_party/re2/util/pcre.cc +0 -1025
- data/third_party/re2/util/pcre.h +0 -681
- data/third_party/re2/util/test.h +0 -50
- data/third_party/upb/upb/arena.c +0 -277
- data/third_party/upb/upb/decode.c +0 -1221
- data/third_party/upb/upb/def.c +0 -3269
- data/third_party/upb/upb/internal/table.h +0 -385
- data/third_party/upb/upb/mini_table.c +0 -1147
- data/third_party/upb/upb/mini_table.h +0 -189
- data/third_party/upb/upb/msg.c +0 -368
- data/third_party/upb/upb/msg_internal.h +0 -837
- data/third_party/upb/upb/reflection.c +0 -323
- data/third_party/zlib/gzclose.c +0 -25
- data/third_party/zlib/gzlib.c +0 -639
- data/third_party/zlib/gzread.c +0 -650
- data/third_party/zlib/gzwrite.c +0 -677
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/naive.c +0 -0
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/range2-sse.c +0 -0
data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc
CHANGED
@@ -39,19 +39,24 @@
|
|
39
39
|
#include "absl/strings/str_join.h"
|
40
40
|
#include "absl/strings/string_view.h"
|
41
41
|
#include "absl/types/optional.h"
|
42
|
+
#include "absl/types/variant.h"
|
42
43
|
|
43
44
|
#include <grpc/event_engine/event_engine.h>
|
44
45
|
#include <grpc/impl/connectivity_state.h>
|
45
46
|
#include <grpc/support/log.h>
|
46
47
|
|
47
48
|
#include "src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h"
|
49
|
+
#include "src/core/ext/filters/client_channel/lb_policy/endpoint_list.h"
|
48
50
|
#include "src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h"
|
49
51
|
#include "src/core/ext/filters/client_channel/lb_policy/subchannel_list.h"
|
50
52
|
#include "src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.h"
|
51
53
|
#include "src/core/lib/address_utils/sockaddr_utils.h"
|
52
54
|
#include "src/core/lib/channel/channel_args.h"
|
53
55
|
#include "src/core/lib/config/core_configuration.h"
|
56
|
+
#include "src/core/lib/debug/stats.h"
|
57
|
+
#include "src/core/lib/debug/stats_data.h"
|
54
58
|
#include "src/core/lib/debug/trace.h"
|
59
|
+
#include "src/core/lib/experiments/experiments.h"
|
55
60
|
#include "src/core/lib/gprpp/debug_location.h"
|
56
61
|
#include "src/core/lib/gprpp/orphanable.h"
|
57
62
|
#include "src/core/lib/gprpp/ref_counted.h"
|
@@ -59,6 +64,7 @@
|
|
59
64
|
#include "src/core/lib/gprpp/sync.h"
|
60
65
|
#include "src/core/lib/gprpp/time.h"
|
61
66
|
#include "src/core/lib/gprpp/validation_errors.h"
|
67
|
+
#include "src/core/lib/gprpp/work_serializer.h"
|
62
68
|
#include "src/core/lib/iomgr/exec_ctx.h"
|
63
69
|
#include "src/core/lib/iomgr/resolved_address.h"
|
64
70
|
#include "src/core/lib/json/json.h"
|
@@ -76,8 +82,7 @@ TraceFlag grpc_lb_wrr_trace(false, "weighted_round_robin_lb");
|
|
76
82
|
|
77
83
|
namespace {
|
78
84
|
|
79
|
-
constexpr absl::string_view kWeightedRoundRobin =
|
80
|
-
"weighted_round_robin_experimental";
|
85
|
+
constexpr absl::string_view kWeightedRoundRobin = "weighted_round_robin";
|
81
86
|
|
82
87
|
// Config for WRR policy.
|
83
88
|
class WeightedRoundRobinConfig : public LoadBalancingPolicy::Config {
|
@@ -140,10 +145,10 @@ class WeightedRoundRobinConfig : public LoadBalancingPolicy::Config {
|
|
140
145
|
float error_utilization_penalty_ = 1.0;
|
141
146
|
};
|
142
147
|
|
143
|
-
// WRR LB policy
|
144
|
-
class
|
148
|
+
// Legacy WRR LB policy (not delegating to pick_first)
|
149
|
+
class OldWeightedRoundRobin : public LoadBalancingPolicy {
|
145
150
|
public:
|
146
|
-
explicit
|
151
|
+
explicit OldWeightedRoundRobin(Args args);
|
147
152
|
|
148
153
|
absl::string_view name() const override { return kWeightedRoundRobin; }
|
149
154
|
|
@@ -154,11 +159,11 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
154
159
|
// Represents the weight for a given address.
|
155
160
|
class AddressWeight : public RefCounted<AddressWeight> {
|
156
161
|
public:
|
157
|
-
AddressWeight(RefCountedPtr<
|
162
|
+
AddressWeight(RefCountedPtr<OldWeightedRoundRobin> wrr, std::string key)
|
158
163
|
: wrr_(std::move(wrr)), key_(std::move(key)) {}
|
159
164
|
~AddressWeight() override;
|
160
165
|
|
161
|
-
void MaybeUpdateWeight(double qps, double eps, double
|
166
|
+
void MaybeUpdateWeight(double qps, double eps, double utilization,
|
162
167
|
float error_utilization_penalty);
|
163
168
|
|
164
169
|
float GetWeight(Timestamp now, Duration weight_expiration_period,
|
@@ -167,7 +172,7 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
167
172
|
void ResetNonEmptySince();
|
168
173
|
|
169
174
|
private:
|
170
|
-
RefCountedPtr<
|
175
|
+
RefCountedPtr<OldWeightedRoundRobin> wrr_;
|
171
176
|
const std::string key_;
|
172
177
|
|
173
178
|
Mutex mu_;
|
@@ -239,7 +244,7 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
239
244
|
: public SubchannelList<WeightedRoundRobinSubchannelList,
|
240
245
|
WeightedRoundRobinSubchannelData> {
|
241
246
|
public:
|
242
|
-
WeightedRoundRobinSubchannelList(
|
247
|
+
WeightedRoundRobinSubchannelList(OldWeightedRoundRobin* policy,
|
243
248
|
ServerAddressList addresses,
|
244
249
|
const ChannelArgs& args)
|
245
250
|
: SubchannelList(policy,
|
@@ -255,7 +260,7 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
255
260
|
}
|
256
261
|
|
257
262
|
~WeightedRoundRobinSubchannelList() override {
|
258
|
-
|
263
|
+
OldWeightedRoundRobin* p = static_cast<OldWeightedRoundRobin*>(policy());
|
259
264
|
p->Unref(DEBUG_LOCATION, "subchannel_list");
|
260
265
|
}
|
261
266
|
|
@@ -272,6 +277,10 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
272
277
|
absl::Status status_for_tf);
|
273
278
|
|
274
279
|
private:
|
280
|
+
std::shared_ptr<WorkSerializer> work_serializer() const override {
|
281
|
+
return static_cast<OldWeightedRoundRobin*>(policy())->work_serializer();
|
282
|
+
}
|
283
|
+
|
275
284
|
std::string CountersString() const {
|
276
285
|
return absl::StrCat("num_subchannels=", num_subchannels(),
|
277
286
|
" num_ready=", num_ready_,
|
@@ -290,7 +299,7 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
290
299
|
// endpoint-reported utilization and QPS.
|
291
300
|
class Picker : public SubchannelPicker {
|
292
301
|
public:
|
293
|
-
Picker(RefCountedPtr<
|
302
|
+
Picker(RefCountedPtr<OldWeightedRoundRobin> wrr,
|
294
303
|
WeightedRoundRobinSubchannelList* subchannel_list);
|
295
304
|
|
296
305
|
~Picker() override;
|
@@ -335,12 +344,8 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
335
344
|
void BuildSchedulerAndStartTimerLocked()
|
336
345
|
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&timer_mu_);
|
337
346
|
|
338
|
-
RefCountedPtr<
|
339
|
-
|
340
|
-
const Duration weight_update_period_;
|
341
|
-
const Duration weight_expiration_period_;
|
342
|
-
const Duration blackout_period_;
|
343
|
-
const float error_utilization_penalty_;
|
347
|
+
RefCountedPtr<OldWeightedRoundRobin> wrr_;
|
348
|
+
RefCountedPtr<WeightedRoundRobinConfig> config_;
|
344
349
|
std::vector<SubchannelInfo> subchannels_;
|
345
350
|
|
346
351
|
Mutex scheduler_mu_;
|
@@ -355,7 +360,7 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
355
360
|
std::atomic<size_t> last_picked_index_;
|
356
361
|
};
|
357
362
|
|
358
|
-
~
|
363
|
+
~OldWeightedRoundRobin() override;
|
359
364
|
|
360
365
|
void ShutdownLocked() override;
|
361
366
|
|
@@ -386,10 +391,10 @@ class WeightedRoundRobin : public LoadBalancingPolicy {
|
|
386
391
|
};
|
387
392
|
|
388
393
|
//
|
389
|
-
//
|
394
|
+
// OldWeightedRoundRobin::AddressWeight
|
390
395
|
//
|
391
396
|
|
392
|
-
|
397
|
+
OldWeightedRoundRobin::AddressWeight::~AddressWeight() {
|
393
398
|
MutexLock lock(&wrr_->address_weight_map_mu_);
|
394
399
|
auto it = wrr_->address_weight_map_.find(key_);
|
395
400
|
if (it != wrr_->address_weight_map_.end() && it->second == this) {
|
@@ -397,24 +402,24 @@ WeightedRoundRobin::AddressWeight::~AddressWeight() {
|
|
397
402
|
}
|
398
403
|
}
|
399
404
|
|
400
|
-
void
|
401
|
-
double qps, double eps, double
|
405
|
+
void OldWeightedRoundRobin::AddressWeight::MaybeUpdateWeight(
|
406
|
+
double qps, double eps, double utilization,
|
402
407
|
float error_utilization_penalty) {
|
403
408
|
// Compute weight.
|
404
409
|
float weight = 0;
|
405
|
-
if (qps > 0 &&
|
410
|
+
if (qps > 0 && utilization > 0) {
|
406
411
|
double penalty = 0.0;
|
407
412
|
if (eps > 0 && error_utilization_penalty > 0) {
|
408
413
|
penalty = eps / qps * error_utilization_penalty;
|
409
414
|
}
|
410
|
-
weight = qps / (
|
415
|
+
weight = qps / (utilization + penalty);
|
411
416
|
}
|
412
417
|
if (weight == 0) {
|
413
418
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
414
419
|
gpr_log(GPR_INFO,
|
415
|
-
"[WRR %p] subchannel %s: qps=%f, eps=%f,
|
420
|
+
"[WRR %p] subchannel %s: qps=%f, eps=%f, utilization=%f: "
|
416
421
|
"error_util_penalty=%f, weight=%f (not updating)",
|
417
|
-
wrr_.get(), key_.c_str(), qps, eps,
|
422
|
+
wrr_.get(), key_.c_str(), qps, eps, utilization,
|
418
423
|
error_utilization_penalty, weight);
|
419
424
|
}
|
420
425
|
return;
|
@@ -424,10 +429,10 @@ void WeightedRoundRobin::AddressWeight::MaybeUpdateWeight(
|
|
424
429
|
MutexLock lock(&mu_);
|
425
430
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
426
431
|
gpr_log(GPR_INFO,
|
427
|
-
"[WRR %p] subchannel %s: qps=%f, eps=%f,
|
432
|
+
"[WRR %p] subchannel %s: qps=%f, eps=%f, utilization=%f "
|
428
433
|
"error_util_penalty=%f : setting weight=%f weight_=%f now=%s "
|
429
434
|
"last_update_time_=%s non_empty_since_=%s",
|
430
|
-
wrr_.get(), key_.c_str(), qps, eps,
|
435
|
+
wrr_.get(), key_.c_str(), qps, eps, utilization,
|
431
436
|
error_utilization_penalty, weight, weight_, now.ToString().c_str(),
|
432
437
|
last_update_time_.ToString().c_str(),
|
433
438
|
non_empty_since_.ToString().c_str());
|
@@ -437,7 +442,7 @@ void WeightedRoundRobin::AddressWeight::MaybeUpdateWeight(
|
|
437
442
|
last_update_time_ = now;
|
438
443
|
}
|
439
444
|
|
440
|
-
float
|
445
|
+
float OldWeightedRoundRobin::AddressWeight::GetWeight(
|
441
446
|
Timestamp now, Duration weight_expiration_period,
|
442
447
|
Duration blackout_period) {
|
443
448
|
MutexLock lock(&mu_);
|
@@ -468,44 +473,42 @@ float WeightedRoundRobin::AddressWeight::GetWeight(
|
|
468
473
|
return weight_;
|
469
474
|
}
|
470
475
|
|
471
|
-
void
|
476
|
+
void OldWeightedRoundRobin::AddressWeight::ResetNonEmptySince() {
|
472
477
|
MutexLock lock(&mu_);
|
473
478
|
non_empty_since_ = Timestamp::InfFuture();
|
474
479
|
}
|
475
480
|
|
476
481
|
//
|
477
|
-
//
|
482
|
+
// OldWeightedRoundRobin::Picker::SubchannelCallTracker
|
478
483
|
//
|
479
484
|
|
480
|
-
void
|
485
|
+
void OldWeightedRoundRobin::Picker::SubchannelCallTracker::Finish(
|
481
486
|
FinishArgs args) {
|
482
487
|
auto* backend_metric_data =
|
483
488
|
args.backend_metric_accessor->GetBackendMetricData();
|
484
489
|
double qps = 0;
|
485
490
|
double eps = 0;
|
486
|
-
double
|
491
|
+
double utilization = 0;
|
487
492
|
if (backend_metric_data != nullptr) {
|
488
493
|
qps = backend_metric_data->qps;
|
489
494
|
eps = backend_metric_data->eps;
|
490
|
-
|
495
|
+
utilization = backend_metric_data->application_utilization;
|
496
|
+
if (utilization <= 0) {
|
497
|
+
utilization = backend_metric_data->cpu_utilization;
|
498
|
+
}
|
491
499
|
}
|
492
|
-
weight_->MaybeUpdateWeight(qps, eps,
|
493
|
-
error_utilization_penalty_);
|
500
|
+
weight_->MaybeUpdateWeight(qps, eps, utilization, error_utilization_penalty_);
|
494
501
|
}
|
495
502
|
|
496
503
|
//
|
497
|
-
//
|
504
|
+
// OldWeightedRoundRobin::Picker
|
498
505
|
//
|
499
506
|
|
500
|
-
|
501
|
-
RefCountedPtr<
|
507
|
+
OldWeightedRoundRobin::Picker::Picker(
|
508
|
+
RefCountedPtr<OldWeightedRoundRobin> wrr,
|
502
509
|
WeightedRoundRobinSubchannelList* subchannel_list)
|
503
510
|
: wrr_(std::move(wrr)),
|
504
|
-
|
505
|
-
weight_update_period_(wrr_->config_->weight_update_period()),
|
506
|
-
weight_expiration_period_(wrr_->config_->weight_expiration_period()),
|
507
|
-
blackout_period_(wrr_->config_->blackout_period()),
|
508
|
-
error_utilization_penalty_(wrr_->config_->error_utilization_penalty()),
|
511
|
+
config_(wrr_->config_),
|
509
512
|
last_picked_index_(absl::Uniform<size_t>(wrr_->bit_gen_)) {
|
510
513
|
for (size_t i = 0; i < subchannel_list->num_subchannels(); ++i) {
|
511
514
|
WeightedRoundRobinSubchannelData* sd = subchannel_list->subchannel(i);
|
@@ -513,6 +516,9 @@ WeightedRoundRobin::Picker::Picker(
|
|
513
516
|
subchannels_.emplace_back(sd->subchannel()->Ref(), sd->weight());
|
514
517
|
}
|
515
518
|
}
|
519
|
+
global_stats().IncrementWrrSubchannelListSize(
|
520
|
+
subchannel_list->num_subchannels());
|
521
|
+
global_stats().IncrementWrrSubchannelReadySize(subchannels_.size());
|
516
522
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
517
523
|
gpr_log(GPR_INFO,
|
518
524
|
"[WRR %p picker %p] created picker from subchannel_list=%p "
|
@@ -522,13 +528,13 @@ WeightedRoundRobin::Picker::Picker(
|
|
522
528
|
BuildSchedulerAndStartTimerLocked();
|
523
529
|
}
|
524
530
|
|
525
|
-
|
531
|
+
OldWeightedRoundRobin::Picker::~Picker() {
|
526
532
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
527
533
|
gpr_log(GPR_INFO, "[WRR %p picker %p] destroying picker", wrr_.get(), this);
|
528
534
|
}
|
529
535
|
}
|
530
536
|
|
531
|
-
void
|
537
|
+
void OldWeightedRoundRobin::Picker::Orphan() {
|
532
538
|
MutexLock lock(&timer_mu_);
|
533
539
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
534
540
|
gpr_log(GPR_INFO, "[WRR %p picker %p] cancelling timer", wrr_.get(), this);
|
@@ -537,16 +543,16 @@ void WeightedRoundRobin::Picker::Orphan() {
|
|
537
543
|
timer_handle_.reset();
|
538
544
|
}
|
539
545
|
|
540
|
-
|
546
|
+
OldWeightedRoundRobin::PickResult OldWeightedRoundRobin::Picker::Pick(
|
541
547
|
PickArgs /*args*/) {
|
542
548
|
size_t index = PickIndex();
|
543
549
|
GPR_ASSERT(index < subchannels_.size());
|
544
550
|
auto& subchannel_info = subchannels_[index];
|
545
551
|
// Collect per-call utilization data if needed.
|
546
552
|
std::unique_ptr<SubchannelCallTrackerInterface> subchannel_call_tracker;
|
547
|
-
if (
|
553
|
+
if (!config_->enable_oob_load_report()) {
|
548
554
|
subchannel_call_tracker = std::make_unique<SubchannelCallTracker>(
|
549
|
-
subchannel_info.weight,
|
555
|
+
subchannel_info.weight, config_->error_utilization_penalty());
|
550
556
|
}
|
551
557
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
552
558
|
gpr_log(GPR_INFO,
|
@@ -557,7 +563,7 @@ WeightedRoundRobin::PickResult WeightedRoundRobin::Picker::Pick(
|
|
557
563
|
std::move(subchannel_call_tracker));
|
558
564
|
}
|
559
565
|
|
560
|
-
size_t
|
566
|
+
size_t OldWeightedRoundRobin::Picker::PickIndex() {
|
561
567
|
// Grab a ref to the scheduler.
|
562
568
|
std::shared_ptr<StaticStrideScheduler> scheduler;
|
563
569
|
{
|
@@ -571,14 +577,14 @@ size_t WeightedRoundRobin::Picker::PickIndex() {
|
|
571
577
|
return last_picked_index_.fetch_add(1) % subchannels_.size();
|
572
578
|
}
|
573
579
|
|
574
|
-
void
|
580
|
+
void OldWeightedRoundRobin::Picker::BuildSchedulerAndStartTimerLocked() {
|
575
581
|
// Build scheduler.
|
576
582
|
const Timestamp now = Timestamp::Now();
|
577
583
|
std::vector<float> weights;
|
578
584
|
weights.reserve(subchannels_.size());
|
579
585
|
for (const auto& subchannel : subchannels_) {
|
580
586
|
weights.push_back(subchannel.weight->GetWeight(
|
581
|
-
now,
|
587
|
+
now, config_->weight_expiration_period(), config_->blackout_period()));
|
582
588
|
}
|
583
589
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
584
590
|
gpr_log(GPR_INFO, "[WRR %p picker %p] new weights: %s", wrr_.get(), this,
|
@@ -605,7 +611,9 @@ void WeightedRoundRobin::Picker::BuildSchedulerAndStartTimerLocked() {
|
|
605
611
|
// Start timer.
|
606
612
|
WeakRefCountedPtr<Picker> self = WeakRef();
|
607
613
|
timer_handle_ = wrr_->channel_control_helper()->GetEventEngine()->RunAfter(
|
608
|
-
|
614
|
+
config_->weight_update_period(),
|
615
|
+
[self = std::move(self),
|
616
|
+
work_serializer = wrr_->work_serializer()]() mutable {
|
609
617
|
ApplicationCallbackExecCtx callback_exec_ctx;
|
610
618
|
ExecCtx exec_ctx;
|
611
619
|
{
|
@@ -618,7 +626,11 @@ void WeightedRoundRobin::Picker::BuildSchedulerAndStartTimerLocked() {
|
|
618
626
|
self->BuildSchedulerAndStartTimerLocked();
|
619
627
|
}
|
620
628
|
}
|
621
|
-
|
629
|
+
if (!IsWorkSerializerDispatchEnabled()) {
|
630
|
+
// Release the picker ref inside the WorkSerializer.
|
631
|
+
work_serializer->Run([self = std::move(self)]() {}, DEBUG_LOCATION);
|
632
|
+
return;
|
633
|
+
}
|
622
634
|
self.reset();
|
623
635
|
});
|
624
636
|
}
|
@@ -627,14 +639,14 @@ void WeightedRoundRobin::Picker::BuildSchedulerAndStartTimerLocked() {
|
|
627
639
|
// WeightedRoundRobin
|
628
640
|
//
|
629
641
|
|
630
|
-
|
642
|
+
OldWeightedRoundRobin::OldWeightedRoundRobin(Args args)
|
631
643
|
: LoadBalancingPolicy(std::move(args)) {
|
632
644
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
633
645
|
gpr_log(GPR_INFO, "[WRR %p] Created", this);
|
634
646
|
}
|
635
647
|
}
|
636
648
|
|
637
|
-
|
649
|
+
OldWeightedRoundRobin::~OldWeightedRoundRobin() {
|
638
650
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
639
651
|
gpr_log(GPR_INFO, "[WRR %p] Destroying Round Robin policy", this);
|
640
652
|
}
|
@@ -642,7 +654,7 @@ WeightedRoundRobin::~WeightedRoundRobin() {
|
|
642
654
|
GPR_ASSERT(latest_pending_subchannel_list_ == nullptr);
|
643
655
|
}
|
644
656
|
|
645
|
-
void
|
657
|
+
void OldWeightedRoundRobin::ShutdownLocked() {
|
646
658
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
647
659
|
gpr_log(GPR_INFO, "[WRR %p] Shutting down", this);
|
648
660
|
}
|
@@ -651,14 +663,15 @@ void WeightedRoundRobin::ShutdownLocked() {
|
|
651
663
|
latest_pending_subchannel_list_.reset();
|
652
664
|
}
|
653
665
|
|
654
|
-
void
|
666
|
+
void OldWeightedRoundRobin::ResetBackoffLocked() {
|
655
667
|
subchannel_list_->ResetBackoffLocked();
|
656
668
|
if (latest_pending_subchannel_list_ != nullptr) {
|
657
669
|
latest_pending_subchannel_list_->ResetBackoffLocked();
|
658
670
|
}
|
659
671
|
}
|
660
672
|
|
661
|
-
absl::Status
|
673
|
+
absl::Status OldWeightedRoundRobin::UpdateLocked(UpdateArgs args) {
|
674
|
+
global_stats().IncrementWrrUpdates();
|
662
675
|
config_ = std::move(args.config);
|
663
676
|
ServerAddressList addresses;
|
664
677
|
if (args.addresses.ok()) {
|
@@ -705,7 +718,7 @@ absl::Status WeightedRoundRobin::UpdateLocked(UpdateArgs args) {
|
|
705
718
|
latest_pending_subchannel_list_ =
|
706
719
|
MakeRefCounted<WeightedRoundRobinSubchannelList>(
|
707
720
|
this, std::move(addresses), args.args);
|
708
|
-
latest_pending_subchannel_list_->StartWatchingLocked();
|
721
|
+
latest_pending_subchannel_list_->StartWatchingLocked(args.args);
|
709
722
|
// If the new list is empty, immediately promote it to
|
710
723
|
// subchannel_list_ and report TRANSIENT_FAILURE.
|
711
724
|
if (latest_pending_subchannel_list_->num_subchannels() == 0) {
|
@@ -725,18 +738,15 @@ absl::Status WeightedRoundRobin::UpdateLocked(UpdateArgs args) {
|
|
725
738
|
return status;
|
726
739
|
}
|
727
740
|
// Otherwise, if this is the initial update, immediately promote it to
|
728
|
-
// subchannel_list_
|
741
|
+
// subchannel_list_.
|
729
742
|
if (subchannel_list_.get() == nullptr) {
|
730
743
|
subchannel_list_ = std::move(latest_pending_subchannel_list_);
|
731
|
-
channel_control_helper()->UpdateState(
|
732
|
-
GRPC_CHANNEL_CONNECTING, absl::Status(),
|
733
|
-
MakeRefCounted<QueuePicker>(Ref(DEBUG_LOCATION, "QueuePicker")));
|
734
744
|
}
|
735
745
|
return absl::OkStatus();
|
736
746
|
}
|
737
747
|
|
738
|
-
RefCountedPtr<
|
739
|
-
|
748
|
+
RefCountedPtr<OldWeightedRoundRobin::AddressWeight>
|
749
|
+
OldWeightedRoundRobin::GetOrCreateWeight(const grpc_resolved_address& address) {
|
740
750
|
auto key = grpc_sockaddr_to_uri(&address);
|
741
751
|
if (!key.ok()) return nullptr;
|
742
752
|
MutexLock lock(&address_weight_map_mu_);
|
@@ -752,10 +762,10 @@ WeightedRoundRobin::GetOrCreateWeight(const grpc_resolved_address& address) {
|
|
752
762
|
}
|
753
763
|
|
754
764
|
//
|
755
|
-
//
|
765
|
+
// OldWeightedRoundRobin::WeightedRoundRobinSubchannelList
|
756
766
|
//
|
757
767
|
|
758
|
-
void
|
768
|
+
void OldWeightedRoundRobin::WeightedRoundRobinSubchannelList::
|
759
769
|
UpdateStateCountersLocked(absl::optional<grpc_connectivity_state> old_state,
|
760
770
|
grpc_connectivity_state new_state) {
|
761
771
|
if (old_state.has_value()) {
|
@@ -781,9 +791,9 @@ void WeightedRoundRobin::WeightedRoundRobinSubchannelList::
|
|
781
791
|
}
|
782
792
|
}
|
783
793
|
|
784
|
-
void
|
794
|
+
void OldWeightedRoundRobin::WeightedRoundRobinSubchannelList::
|
785
795
|
MaybeUpdateAggregatedConnectivityStateLocked(absl::Status status_for_tf) {
|
786
|
-
|
796
|
+
OldWeightedRoundRobin* p = static_cast<OldWeightedRoundRobin*>(policy());
|
787
797
|
// If this is latest_pending_subchannel_list_, then swap it into
|
788
798
|
// subchannel_list_ in the following cases:
|
789
799
|
// - subchannel_list_ has no READY subchannels.
|
@@ -849,31 +859,34 @@ void WeightedRoundRobin::WeightedRoundRobinSubchannelList::
|
|
849
859
|
}
|
850
860
|
|
851
861
|
//
|
852
|
-
//
|
862
|
+
// OldWeightedRoundRobin::WeightedRoundRobinSubchannelData::OobWatcher
|
853
863
|
//
|
854
864
|
|
855
|
-
void
|
865
|
+
void OldWeightedRoundRobin::WeightedRoundRobinSubchannelData::OobWatcher::
|
856
866
|
OnBackendMetricReport(const BackendMetricData& backend_metric_data) {
|
867
|
+
double utilization = backend_metric_data.application_utilization;
|
868
|
+
if (utilization <= 0) {
|
869
|
+
utilization = backend_metric_data.cpu_utilization;
|
870
|
+
}
|
857
871
|
weight_->MaybeUpdateWeight(backend_metric_data.qps, backend_metric_data.eps,
|
858
|
-
|
859
|
-
error_utilization_penalty_);
|
872
|
+
utilization, error_utilization_penalty_);
|
860
873
|
}
|
861
874
|
|
862
875
|
//
|
863
|
-
//
|
876
|
+
// OldWeightedRoundRobin::WeightedRoundRobinSubchannelData
|
864
877
|
//
|
865
878
|
|
866
|
-
|
879
|
+
OldWeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
867
880
|
WeightedRoundRobinSubchannelData(
|
868
881
|
SubchannelList<WeightedRoundRobinSubchannelList,
|
869
882
|
WeightedRoundRobinSubchannelData>* subchannel_list,
|
870
883
|
const ServerAddress& address, RefCountedPtr<SubchannelInterface> sc)
|
871
884
|
: SubchannelData(subchannel_list, address, std::move(sc)),
|
872
|
-
weight_(static_cast<
|
885
|
+
weight_(static_cast<OldWeightedRoundRobin*>(subchannel_list->policy())
|
873
886
|
->GetOrCreateWeight(address.address())) {
|
874
887
|
// Start OOB watch if configured.
|
875
|
-
|
876
|
-
static_cast<
|
888
|
+
OldWeightedRoundRobin* p =
|
889
|
+
static_cast<OldWeightedRoundRobin*>(subchannel_list->policy());
|
877
890
|
if (p->config_->enable_oob_load_report()) {
|
878
891
|
subchannel()->AddDataWatcher(MakeOobBackendMetricWatcher(
|
879
892
|
p->config_->oob_reporting_period(),
|
@@ -882,12 +895,12 @@ WeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
|
882
895
|
}
|
883
896
|
}
|
884
897
|
|
885
|
-
void
|
898
|
+
void OldWeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
886
899
|
ProcessConnectivityChangeLocked(
|
887
900
|
absl::optional<grpc_connectivity_state> old_state,
|
888
901
|
grpc_connectivity_state new_state) {
|
889
|
-
|
890
|
-
static_cast<
|
902
|
+
OldWeightedRoundRobin* p =
|
903
|
+
static_cast<OldWeightedRoundRobin*>(subchannel_list()->policy());
|
891
904
|
GPR_ASSERT(subchannel() != nullptr);
|
892
905
|
// If this is not the initial state notification and the new state is
|
893
906
|
// TRANSIENT_FAILURE or IDLE, re-resolve.
|
@@ -911,12 +924,21 @@ void WeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
|
911
924
|
subchannel()->RequestConnection();
|
912
925
|
} else if (new_state == GRPC_CHANNEL_READY) {
|
913
926
|
// If we transition back to READY state, restart the blackout period.
|
927
|
+
// Skip this if this is the initial notification for this
|
928
|
+
// subchannel (which happens whenever we get updated addresses and
|
929
|
+
// create a new endpoint list). Also skip it if the previous state
|
930
|
+
// was READY (which should never happen in practice, but we've seen
|
931
|
+
// at least one bug that caused this in the outlier_detection
|
932
|
+
// policy, so let's be defensive here).
|
933
|
+
//
|
914
934
|
// Note that we cannot guarantee that we will never receive
|
915
935
|
// lingering callbacks for backend metric reports from the previous
|
916
936
|
// connection after the new connection has been established, but they
|
917
937
|
// should be masked by new backend metric reports from the new
|
918
938
|
// connection by the time the blackout period ends.
|
919
|
-
|
939
|
+
if (old_state.has_value() && old_state != GRPC_CHANNEL_READY) {
|
940
|
+
weight_->ResetNonEmptySince();
|
941
|
+
}
|
920
942
|
}
|
921
943
|
// Update logical connectivity state.
|
922
944
|
UpdateLogicalConnectivityStateLocked(new_state);
|
@@ -925,11 +947,11 @@ void WeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
|
925
947
|
connectivity_status());
|
926
948
|
}
|
927
949
|
|
928
|
-
void
|
950
|
+
void OldWeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
929
951
|
UpdateLogicalConnectivityStateLocked(
|
930
952
|
grpc_connectivity_state connectivity_state) {
|
931
|
-
|
932
|
-
static_cast<
|
953
|
+
OldWeightedRoundRobin* p =
|
954
|
+
static_cast<OldWeightedRoundRobin*>(subchannel_list()->policy());
|
933
955
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
934
956
|
gpr_log(
|
935
957
|
GPR_INFO,
|
@@ -973,28 +995,809 @@ void WeightedRoundRobin::WeightedRoundRobinSubchannelData::
|
|
973
995
|
logical_connectivity_state_ = connectivity_state;
|
974
996
|
}
|
975
997
|
|
998
|
+
// New WRR LB policy (with delegation to pick_first)
|
999
|
+
class WeightedRoundRobin : public LoadBalancingPolicy {
|
1000
|
+
public:
|
1001
|
+
explicit WeightedRoundRobin(Args args);
|
1002
|
+
|
1003
|
+
absl::string_view name() const override { return kWeightedRoundRobin; }
|
1004
|
+
|
1005
|
+
absl::Status UpdateLocked(UpdateArgs args) override;
|
1006
|
+
void ResetBackoffLocked() override;
|
1007
|
+
|
1008
|
+
private:
|
1009
|
+
// Represents the weight for a given address.
|
1010
|
+
class EndpointWeight : public RefCounted<EndpointWeight> {
|
1011
|
+
public:
|
1012
|
+
EndpointWeight(RefCountedPtr<WeightedRoundRobin> wrr, std::string key)
|
1013
|
+
: wrr_(std::move(wrr)), key_(std::move(key)) {}
|
1014
|
+
~EndpointWeight() override;
|
1015
|
+
|
1016
|
+
void MaybeUpdateWeight(double qps, double eps, double utilization,
|
1017
|
+
float error_utilization_penalty);
|
1018
|
+
|
1019
|
+
float GetWeight(Timestamp now, Duration weight_expiration_period,
|
1020
|
+
Duration blackout_period);
|
1021
|
+
|
1022
|
+
void ResetNonEmptySince();
|
1023
|
+
|
1024
|
+
private:
|
1025
|
+
RefCountedPtr<WeightedRoundRobin> wrr_;
|
1026
|
+
const std::string key_;
|
1027
|
+
|
1028
|
+
Mutex mu_;
|
1029
|
+
float weight_ ABSL_GUARDED_BY(&mu_) = 0;
|
1030
|
+
Timestamp non_empty_since_ ABSL_GUARDED_BY(&mu_) = Timestamp::InfFuture();
|
1031
|
+
Timestamp last_update_time_ ABSL_GUARDED_BY(&mu_) = Timestamp::InfPast();
|
1032
|
+
};
|
1033
|
+
|
1034
|
+
class WrrEndpointList : public EndpointList {
|
1035
|
+
public:
|
1036
|
+
class WrrEndpoint : public Endpoint {
|
1037
|
+
public:
|
1038
|
+
WrrEndpoint(RefCountedPtr<WrrEndpointList> endpoint_list,
|
1039
|
+
const ServerAddress& address, const ChannelArgs& args,
|
1040
|
+
std::shared_ptr<WorkSerializer> work_serializer)
|
1041
|
+
: Endpoint(std::move(endpoint_list)),
|
1042
|
+
weight_(policy<WeightedRoundRobin>()->GetOrCreateWeight(
|
1043
|
+
address.address())) {
|
1044
|
+
Init(address, args, std::move(work_serializer));
|
1045
|
+
}
|
1046
|
+
|
1047
|
+
RefCountedPtr<EndpointWeight> weight() const { return weight_; }
|
1048
|
+
|
1049
|
+
private:
|
1050
|
+
class OobWatcher : public OobBackendMetricWatcher {
|
1051
|
+
public:
|
1052
|
+
OobWatcher(RefCountedPtr<EndpointWeight> weight,
|
1053
|
+
float error_utilization_penalty)
|
1054
|
+
: weight_(std::move(weight)),
|
1055
|
+
error_utilization_penalty_(error_utilization_penalty) {}
|
1056
|
+
|
1057
|
+
void OnBackendMetricReport(
|
1058
|
+
const BackendMetricData& backend_metric_data) override;
|
1059
|
+
|
1060
|
+
private:
|
1061
|
+
RefCountedPtr<EndpointWeight> weight_;
|
1062
|
+
const float error_utilization_penalty_;
|
1063
|
+
};
|
1064
|
+
|
1065
|
+
RefCountedPtr<SubchannelInterface> CreateSubchannel(
|
1066
|
+
ServerAddress address, const ChannelArgs& args) override;
|
1067
|
+
|
1068
|
+
// Called when the child policy reports a connectivity state update.
|
1069
|
+
void OnStateUpdate(absl::optional<grpc_connectivity_state> old_state,
|
1070
|
+
grpc_connectivity_state new_state,
|
1071
|
+
const absl::Status& status) override;
|
1072
|
+
|
1073
|
+
RefCountedPtr<EndpointWeight> weight_;
|
1074
|
+
};
|
1075
|
+
|
1076
|
+
WrrEndpointList(RefCountedPtr<WeightedRoundRobin> wrr,
|
1077
|
+
const ServerAddressList& addresses, const ChannelArgs& args)
|
1078
|
+
: EndpointList(std::move(wrr),
|
1079
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)
|
1080
|
+
? "WrrEndpointList"
|
1081
|
+
: nullptr) {
|
1082
|
+
Init(addresses, args,
|
1083
|
+
[&](RefCountedPtr<WrrEndpointList> endpoint_list,
|
1084
|
+
const ServerAddress& address, const ChannelArgs& args) {
|
1085
|
+
return MakeOrphanable<WrrEndpoint>(
|
1086
|
+
std::move(endpoint_list), address, args,
|
1087
|
+
policy<WeightedRoundRobin>()->work_serializer());
|
1088
|
+
});
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
private:
|
1092
|
+
LoadBalancingPolicy::ChannelControlHelper* channel_control_helper()
|
1093
|
+
const override {
|
1094
|
+
return policy<WeightedRoundRobin>()->channel_control_helper();
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
// Updates the counters of children in each state when a
|
1098
|
+
// child transitions from old_state to new_state.
|
1099
|
+
void UpdateStateCountersLocked(
|
1100
|
+
absl::optional<grpc_connectivity_state> old_state,
|
1101
|
+
grpc_connectivity_state new_state);
|
1102
|
+
|
1103
|
+
// Ensures that the right child list is used and then updates
|
1104
|
+
// the WRR policy's connectivity state based on the child list's
|
1105
|
+
// state counters.
|
1106
|
+
void MaybeUpdateAggregatedConnectivityStateLocked(
|
1107
|
+
absl::Status status_for_tf);
|
1108
|
+
|
1109
|
+
std::string CountersString() const {
|
1110
|
+
return absl::StrCat("num_children=", size(), " num_ready=", num_ready_,
|
1111
|
+
" num_connecting=", num_connecting_,
|
1112
|
+
" num_transient_failure=", num_transient_failure_);
|
1113
|
+
}
|
1114
|
+
|
1115
|
+
size_t num_ready_ = 0;
|
1116
|
+
size_t num_connecting_ = 0;
|
1117
|
+
size_t num_transient_failure_ = 0;
|
1118
|
+
|
1119
|
+
absl::Status last_failure_;
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
// A picker that performs WRR picks with weights based on
|
1123
|
+
// endpoint-reported utilization and QPS.
|
1124
|
+
class Picker : public SubchannelPicker {
|
1125
|
+
public:
|
1126
|
+
Picker(RefCountedPtr<WeightedRoundRobin> wrr,
|
1127
|
+
WrrEndpointList* endpoint_list);
|
1128
|
+
|
1129
|
+
~Picker() override;
|
1130
|
+
|
1131
|
+
PickResult Pick(PickArgs args) override;
|
1132
|
+
|
1133
|
+
void Orphan() override;
|
1134
|
+
|
1135
|
+
private:
|
1136
|
+
// A call tracker that collects per-call endpoint utilization reports.
|
1137
|
+
class SubchannelCallTracker : public SubchannelCallTrackerInterface {
|
1138
|
+
public:
|
1139
|
+
SubchannelCallTracker(
|
1140
|
+
RefCountedPtr<EndpointWeight> weight, float error_utilization_penalty,
|
1141
|
+
std::unique_ptr<SubchannelCallTrackerInterface> child_tracker)
|
1142
|
+
: weight_(std::move(weight)),
|
1143
|
+
error_utilization_penalty_(error_utilization_penalty),
|
1144
|
+
child_tracker_(std::move(child_tracker)) {}
|
1145
|
+
|
1146
|
+
void Start() override;
|
1147
|
+
|
1148
|
+
void Finish(FinishArgs args) override;
|
1149
|
+
|
1150
|
+
private:
|
1151
|
+
RefCountedPtr<EndpointWeight> weight_;
|
1152
|
+
const float error_utilization_penalty_;
|
1153
|
+
std::unique_ptr<SubchannelCallTrackerInterface> child_tracker_;
|
1154
|
+
};
|
1155
|
+
|
1156
|
+
// Info stored about each endpoint.
|
1157
|
+
struct EndpointInfo {
|
1158
|
+
EndpointInfo(RefCountedPtr<SubchannelPicker> picker,
|
1159
|
+
RefCountedPtr<EndpointWeight> weight)
|
1160
|
+
: picker(std::move(picker)), weight(std::move(weight)) {}
|
1161
|
+
|
1162
|
+
RefCountedPtr<SubchannelPicker> picker;
|
1163
|
+
RefCountedPtr<EndpointWeight> weight;
|
1164
|
+
};
|
1165
|
+
|
1166
|
+
// Returns the index into endpoints_ to be picked.
|
1167
|
+
size_t PickIndex();
|
1168
|
+
|
1169
|
+
// Builds a new scheduler and swaps it into place, then starts a
|
1170
|
+
// timer for the next update.
|
1171
|
+
void BuildSchedulerAndStartTimerLocked()
|
1172
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&timer_mu_);
|
1173
|
+
|
1174
|
+
RefCountedPtr<WeightedRoundRobin> wrr_;
|
1175
|
+
RefCountedPtr<WeightedRoundRobinConfig> config_;
|
1176
|
+
std::vector<EndpointInfo> endpoints_;
|
1177
|
+
|
1178
|
+
Mutex scheduler_mu_;
|
1179
|
+
std::shared_ptr<StaticStrideScheduler> scheduler_
|
1180
|
+
ABSL_GUARDED_BY(&scheduler_mu_);
|
1181
|
+
|
1182
|
+
Mutex timer_mu_ ABSL_ACQUIRED_BEFORE(&scheduler_mu_);
|
1183
|
+
absl::optional<grpc_event_engine::experimental::EventEngine::TaskHandle>
|
1184
|
+
timer_handle_ ABSL_GUARDED_BY(&timer_mu_);
|
1185
|
+
|
1186
|
+
// Used when falling back to RR.
|
1187
|
+
std::atomic<size_t> last_picked_index_;
|
1188
|
+
};
|
1189
|
+
|
1190
|
+
~WeightedRoundRobin() override;
|
1191
|
+
|
1192
|
+
void ShutdownLocked() override;
|
1193
|
+
|
1194
|
+
RefCountedPtr<EndpointWeight> GetOrCreateWeight(
|
1195
|
+
const grpc_resolved_address& address);
|
1196
|
+
|
1197
|
+
RefCountedPtr<WeightedRoundRobinConfig> config_;
|
1198
|
+
|
1199
|
+
// List of endpoints.
|
1200
|
+
OrphanablePtr<WrrEndpointList> endpoint_list_;
|
1201
|
+
// Latest pending endpoint list.
|
1202
|
+
// When we get an updated address list, we create a new endpoint list
|
1203
|
+
// for it here, and we wait to swap it into endpoint_list_ until the new
|
1204
|
+
// list becomes READY.
|
1205
|
+
OrphanablePtr<WrrEndpointList> latest_pending_endpoint_list_;
|
1206
|
+
|
1207
|
+
Mutex endpoint_weight_map_mu_;
|
1208
|
+
std::map<std::string, EndpointWeight*, std::less<>> endpoint_weight_map_
|
1209
|
+
ABSL_GUARDED_BY(&endpoint_weight_map_mu_);
|
1210
|
+
|
1211
|
+
bool shutdown_ = false;
|
1212
|
+
|
1213
|
+
absl::BitGen bit_gen_;
|
1214
|
+
|
1215
|
+
// Accessed by picker.
|
1216
|
+
std::atomic<uint32_t> scheduler_state_{absl::Uniform<uint32_t>(bit_gen_)};
|
1217
|
+
};
|
1218
|
+
|
976
1219
|
//
|
977
|
-
//
|
1220
|
+
// WeightedRoundRobin::EndpointWeight
|
978
1221
|
//
|
979
1222
|
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
1223
|
+
WeightedRoundRobin::EndpointWeight::~EndpointWeight() {
|
1224
|
+
MutexLock lock(&wrr_->endpoint_weight_map_mu_);
|
1225
|
+
auto it = wrr_->endpoint_weight_map_.find(key_);
|
1226
|
+
if (it != wrr_->endpoint_weight_map_.end() && it->second == this) {
|
1227
|
+
wrr_->endpoint_weight_map_.erase(it);
|
985
1228
|
}
|
1229
|
+
}
|
986
1230
|
|
987
|
-
|
1231
|
+
void WeightedRoundRobin::EndpointWeight::MaybeUpdateWeight(
|
1232
|
+
double qps, double eps, double utilization,
|
1233
|
+
float error_utilization_penalty) {
|
1234
|
+
// Compute weight.
|
1235
|
+
float weight = 0;
|
1236
|
+
if (qps > 0 && utilization > 0) {
|
1237
|
+
double penalty = 0.0;
|
1238
|
+
if (eps > 0 && error_utilization_penalty > 0) {
|
1239
|
+
penalty = eps / qps * error_utilization_penalty;
|
1240
|
+
}
|
1241
|
+
weight = qps / (utilization + penalty);
|
1242
|
+
}
|
1243
|
+
if (weight == 0) {
|
1244
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1245
|
+
gpr_log(GPR_INFO,
|
1246
|
+
"[WRR %p] subchannel %s: qps=%f, eps=%f, utilization=%f: "
|
1247
|
+
"error_util_penalty=%f, weight=%f (not updating)",
|
1248
|
+
wrr_.get(), key_.c_str(), qps, eps, utilization,
|
1249
|
+
error_utilization_penalty, weight);
|
1250
|
+
}
|
1251
|
+
return;
|
1252
|
+
}
|
1253
|
+
Timestamp now = Timestamp::Now();
|
1254
|
+
// Grab the lock and update the data.
|
1255
|
+
MutexLock lock(&mu_);
|
1256
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1257
|
+
gpr_log(GPR_INFO,
|
1258
|
+
"[WRR %p] subchannel %s: qps=%f, eps=%f, utilization=%f "
|
1259
|
+
"error_util_penalty=%f : setting weight=%f weight_=%f now=%s "
|
1260
|
+
"last_update_time_=%s non_empty_since_=%s",
|
1261
|
+
wrr_.get(), key_.c_str(), qps, eps, utilization,
|
1262
|
+
error_utilization_penalty, weight, weight_, now.ToString().c_str(),
|
1263
|
+
last_update_time_.ToString().c_str(),
|
1264
|
+
non_empty_since_.ToString().c_str());
|
1265
|
+
}
|
1266
|
+
if (non_empty_since_ == Timestamp::InfFuture()) non_empty_since_ = now;
|
1267
|
+
weight_ = weight;
|
1268
|
+
last_update_time_ = now;
|
1269
|
+
}
|
988
1270
|
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
1271
|
+
float WeightedRoundRobin::EndpointWeight::GetWeight(
|
1272
|
+
Timestamp now, Duration weight_expiration_period,
|
1273
|
+
Duration blackout_period) {
|
1274
|
+
MutexLock lock(&mu_);
|
1275
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1276
|
+
gpr_log(GPR_INFO,
|
1277
|
+
"[WRR %p] subchannel %s: getting weight: now=%s "
|
1278
|
+
"weight_expiration_period=%s blackout_period=%s "
|
1279
|
+
"last_update_time_=%s non_empty_since_=%s weight_=%f",
|
1280
|
+
wrr_.get(), key_.c_str(), now.ToString().c_str(),
|
1281
|
+
weight_expiration_period.ToString().c_str(),
|
1282
|
+
blackout_period.ToString().c_str(),
|
1283
|
+
last_update_time_.ToString().c_str(),
|
1284
|
+
non_empty_since_.ToString().c_str(), weight_);
|
1285
|
+
}
|
1286
|
+
// If the most recent update was longer ago than the expiration
|
1287
|
+
// period, reset non_empty_since_ so that we apply the blackout period
|
1288
|
+
// again if we start getting data again in the future, and return 0.
|
1289
|
+
if (now - last_update_time_ >= weight_expiration_period) {
|
1290
|
+
non_empty_since_ = Timestamp::InfFuture();
|
1291
|
+
return 0;
|
1292
|
+
}
|
1293
|
+
// If we don't have at least blackout_period worth of data, return 0.
|
1294
|
+
if (blackout_period > Duration::Zero() &&
|
1295
|
+
now - non_empty_since_ < blackout_period) {
|
1296
|
+
return 0;
|
1297
|
+
}
|
1298
|
+
// Otherwise, return the weight.
|
1299
|
+
return weight_;
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
void WeightedRoundRobin::EndpointWeight::ResetNonEmptySince() {
|
1303
|
+
MutexLock lock(&mu_);
|
1304
|
+
non_empty_since_ = Timestamp::InfFuture();
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
//
|
1308
|
+
// WeightedRoundRobin::Picker::SubchannelCallTracker
|
1309
|
+
//
|
1310
|
+
|
1311
|
+
void WeightedRoundRobin::Picker::SubchannelCallTracker::Start() {
|
1312
|
+
if (child_tracker_ != nullptr) child_tracker_->Start();
|
1313
|
+
}
|
1314
|
+
|
1315
|
+
void WeightedRoundRobin::Picker::SubchannelCallTracker::Finish(
|
1316
|
+
FinishArgs args) {
|
1317
|
+
if (child_tracker_ != nullptr) child_tracker_->Finish(args);
|
1318
|
+
auto* backend_metric_data =
|
1319
|
+
args.backend_metric_accessor->GetBackendMetricData();
|
1320
|
+
double qps = 0;
|
1321
|
+
double eps = 0;
|
1322
|
+
double utilization = 0;
|
1323
|
+
if (backend_metric_data != nullptr) {
|
1324
|
+
qps = backend_metric_data->qps;
|
1325
|
+
eps = backend_metric_data->eps;
|
1326
|
+
utilization = backend_metric_data->application_utilization;
|
1327
|
+
if (utilization <= 0) {
|
1328
|
+
utilization = backend_metric_data->cpu_utilization;
|
996
1329
|
}
|
997
|
-
|
1330
|
+
}
|
1331
|
+
weight_->MaybeUpdateWeight(qps, eps, utilization, error_utilization_penalty_);
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
//
|
1335
|
+
// WeightedRoundRobin::Picker
|
1336
|
+
//
|
1337
|
+
|
1338
|
+
WeightedRoundRobin::Picker::Picker(RefCountedPtr<WeightedRoundRobin> wrr,
|
1339
|
+
WrrEndpointList* endpoint_list)
|
1340
|
+
: wrr_(std::move(wrr)),
|
1341
|
+
config_(wrr_->config_),
|
1342
|
+
last_picked_index_(absl::Uniform<size_t>(wrr_->bit_gen_)) {
|
1343
|
+
for (auto& endpoint : endpoint_list->endpoints()) {
|
1344
|
+
auto* ep = static_cast<WrrEndpointList::WrrEndpoint*>(endpoint.get());
|
1345
|
+
if (ep->connectivity_state() == GRPC_CHANNEL_READY) {
|
1346
|
+
endpoints_.emplace_back(ep->picker(), ep->weight());
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
global_stats().IncrementWrrSubchannelListSize(endpoint_list->size());
|
1350
|
+
global_stats().IncrementWrrSubchannelReadySize(endpoints_.size());
|
1351
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1352
|
+
gpr_log(GPR_INFO,
|
1353
|
+
"[WRR %p picker %p] created picker from endpoint_list=%p "
|
1354
|
+
"with %" PRIuPTR " subchannels",
|
1355
|
+
wrr_.get(), this, endpoint_list, endpoints_.size());
|
1356
|
+
}
|
1357
|
+
BuildSchedulerAndStartTimerLocked();
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
WeightedRoundRobin::Picker::~Picker() {
|
1361
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1362
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] destroying picker", wrr_.get(), this);
|
1363
|
+
}
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
void WeightedRoundRobin::Picker::Orphan() {
|
1367
|
+
MutexLock lock(&timer_mu_);
|
1368
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1369
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] cancelling timer", wrr_.get(), this);
|
1370
|
+
}
|
1371
|
+
wrr_->channel_control_helper()->GetEventEngine()->Cancel(*timer_handle_);
|
1372
|
+
timer_handle_.reset();
|
1373
|
+
wrr_.reset();
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
WeightedRoundRobin::PickResult WeightedRoundRobin::Picker::Pick(PickArgs args) {
|
1377
|
+
size_t index = PickIndex();
|
1378
|
+
GPR_ASSERT(index < endpoints_.size());
|
1379
|
+
auto& endpoint_info = endpoints_[index];
|
1380
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1381
|
+
gpr_log(GPR_INFO,
|
1382
|
+
"[WRR %p picker %p] returning index %" PRIuPTR ", picker=%p",
|
1383
|
+
wrr_.get(), this, index, endpoint_info.picker.get());
|
1384
|
+
}
|
1385
|
+
auto result = endpoint_info.picker->Pick(args);
|
1386
|
+
// Collect per-call utilization data if needed.
|
1387
|
+
if (!config_->enable_oob_load_report()) {
|
1388
|
+
auto* complete = absl::get_if<PickResult::Complete>(&result.result);
|
1389
|
+
if (complete != nullptr) {
|
1390
|
+
complete->subchannel_call_tracker =
|
1391
|
+
std::make_unique<SubchannelCallTracker>(
|
1392
|
+
endpoint_info.weight, config_->error_utilization_penalty(),
|
1393
|
+
std::move(complete->subchannel_call_tracker));
|
1394
|
+
}
|
1395
|
+
}
|
1396
|
+
return result;
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
size_t WeightedRoundRobin::Picker::PickIndex() {
|
1400
|
+
// Grab a ref to the scheduler.
|
1401
|
+
std::shared_ptr<StaticStrideScheduler> scheduler;
|
1402
|
+
{
|
1403
|
+
MutexLock lock(&scheduler_mu_);
|
1404
|
+
scheduler = scheduler_;
|
1405
|
+
}
|
1406
|
+
// If we have a scheduler, use it to do a WRR pick.
|
1407
|
+
if (scheduler != nullptr) return scheduler->Pick();
|
1408
|
+
// We don't have a scheduler (i.e., either all of the weights are 0 or
|
1409
|
+
// there is only one subchannel), so fall back to RR.
|
1410
|
+
return last_picked_index_.fetch_add(1) % endpoints_.size();
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
void WeightedRoundRobin::Picker::BuildSchedulerAndStartTimerLocked() {
|
1414
|
+
// Build scheduler.
|
1415
|
+
const Timestamp now = Timestamp::Now();
|
1416
|
+
std::vector<float> weights;
|
1417
|
+
weights.reserve(endpoints_.size());
|
1418
|
+
for (const auto& endpoint : endpoints_) {
|
1419
|
+
weights.push_back(endpoint.weight->GetWeight(
|
1420
|
+
now, config_->weight_expiration_period(), config_->blackout_period()));
|
1421
|
+
}
|
1422
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1423
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] new weights: %s", wrr_.get(), this,
|
1424
|
+
absl::StrJoin(weights, " ").c_str());
|
1425
|
+
}
|
1426
|
+
auto scheduler_or = StaticStrideScheduler::Make(
|
1427
|
+
weights, [this]() { return wrr_->scheduler_state_.fetch_add(1); });
|
1428
|
+
std::shared_ptr<StaticStrideScheduler> scheduler;
|
1429
|
+
if (scheduler_or.has_value()) {
|
1430
|
+
scheduler =
|
1431
|
+
std::make_shared<StaticStrideScheduler>(std::move(*scheduler_or));
|
1432
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1433
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] new scheduler: %p", wrr_.get(),
|
1434
|
+
this, scheduler.get());
|
1435
|
+
}
|
1436
|
+
} else if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1437
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] no scheduler, falling back to RR",
|
1438
|
+
wrr_.get(), this);
|
1439
|
+
}
|
1440
|
+
{
|
1441
|
+
MutexLock lock(&scheduler_mu_);
|
1442
|
+
scheduler_ = std::move(scheduler);
|
1443
|
+
}
|
1444
|
+
// Start timer.
|
1445
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1446
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] scheduling timer for %s", wrr_.get(),
|
1447
|
+
this, config_->weight_update_period().ToString().c_str());
|
1448
|
+
}
|
1449
|
+
WeakRefCountedPtr<Picker> self = WeakRef();
|
1450
|
+
timer_handle_ = wrr_->channel_control_helper()->GetEventEngine()->RunAfter(
|
1451
|
+
config_->weight_update_period(),
|
1452
|
+
[self = std::move(self),
|
1453
|
+
work_serializer = wrr_->work_serializer()]() mutable {
|
1454
|
+
ApplicationCallbackExecCtx callback_exec_ctx;
|
1455
|
+
ExecCtx exec_ctx;
|
1456
|
+
{
|
1457
|
+
MutexLock lock(&self->timer_mu_);
|
1458
|
+
if (self->timer_handle_.has_value()) {
|
1459
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1460
|
+
gpr_log(GPR_INFO, "[WRR %p picker %p] timer fired",
|
1461
|
+
self->wrr_.get(), self.get());
|
1462
|
+
}
|
1463
|
+
self->BuildSchedulerAndStartTimerLocked();
|
1464
|
+
}
|
1465
|
+
}
|
1466
|
+
if (!IsWorkSerializerDispatchEnabled()) {
|
1467
|
+
// Release the picker ref inside the WorkSerializer.
|
1468
|
+
work_serializer->Run([self = std::move(self)]() {}, DEBUG_LOCATION);
|
1469
|
+
return;
|
1470
|
+
}
|
1471
|
+
self.reset();
|
1472
|
+
});
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
//
|
1476
|
+
// WeightedRoundRobin
|
1477
|
+
//
|
1478
|
+
|
1479
|
+
WeightedRoundRobin::WeightedRoundRobin(Args args)
|
1480
|
+
: LoadBalancingPolicy(std::move(args)) {
|
1481
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1482
|
+
gpr_log(GPR_INFO, "[WRR %p] Created", this);
|
1483
|
+
}
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
WeightedRoundRobin::~WeightedRoundRobin() {
|
1487
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1488
|
+
gpr_log(GPR_INFO, "[WRR %p] Destroying Round Robin policy", this);
|
1489
|
+
}
|
1490
|
+
GPR_ASSERT(endpoint_list_ == nullptr);
|
1491
|
+
GPR_ASSERT(latest_pending_endpoint_list_ == nullptr);
|
1492
|
+
}
|
1493
|
+
|
1494
|
+
void WeightedRoundRobin::ShutdownLocked() {
|
1495
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1496
|
+
gpr_log(GPR_INFO, "[WRR %p] Shutting down", this);
|
1497
|
+
}
|
1498
|
+
shutdown_ = true;
|
1499
|
+
endpoint_list_.reset();
|
1500
|
+
latest_pending_endpoint_list_.reset();
|
1501
|
+
}
|
1502
|
+
|
1503
|
+
void WeightedRoundRobin::ResetBackoffLocked() {
|
1504
|
+
endpoint_list_->ResetBackoffLocked();
|
1505
|
+
if (latest_pending_endpoint_list_ != nullptr) {
|
1506
|
+
latest_pending_endpoint_list_->ResetBackoffLocked();
|
1507
|
+
}
|
1508
|
+
}
|
1509
|
+
|
1510
|
+
absl::Status WeightedRoundRobin::UpdateLocked(UpdateArgs args) {
|
1511
|
+
global_stats().IncrementWrrUpdates();
|
1512
|
+
config_ = std::move(args.config);
|
1513
|
+
ServerAddressList addresses;
|
1514
|
+
if (args.addresses.ok()) {
|
1515
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1516
|
+
gpr_log(GPR_INFO, "[WRR %p] received update with %" PRIuPTR " addresses",
|
1517
|
+
this, args.addresses->size());
|
1518
|
+
}
|
1519
|
+
// Weed out duplicate addresses. Also sort the addresses so that if
|
1520
|
+
// the set of the addresses don't change, their indexes in the
|
1521
|
+
// subchannel list don't change, since this avoids unnecessary churn
|
1522
|
+
// in the picker. Note that this does not ensure that if a given
|
1523
|
+
// address remains present that it will have the same index; if,
|
1524
|
+
// for example, an address at the end of the list is replaced with one
|
1525
|
+
// that sorts much earlier in the list, then all of the addresses in
|
1526
|
+
// between those two positions will have changed indexes.
|
1527
|
+
struct AddressLessThan {
|
1528
|
+
bool operator()(const ServerAddress& address1,
|
1529
|
+
const ServerAddress& address2) const {
|
1530
|
+
const grpc_resolved_address& addr1 = address1.address();
|
1531
|
+
const grpc_resolved_address& addr2 = address2.address();
|
1532
|
+
if (addr1.len != addr2.len) return addr1.len < addr2.len;
|
1533
|
+
return memcmp(addr1.addr, addr2.addr, addr1.len) < 0;
|
1534
|
+
}
|
1535
|
+
};
|
1536
|
+
std::set<ServerAddress, AddressLessThan> ordered_addresses(
|
1537
|
+
args.addresses->begin(), args.addresses->end());
|
1538
|
+
addresses =
|
1539
|
+
ServerAddressList(ordered_addresses.begin(), ordered_addresses.end());
|
1540
|
+
} else {
|
1541
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1542
|
+
gpr_log(GPR_INFO, "[WRR %p] received update with address error: %s", this,
|
1543
|
+
args.addresses.status().ToString().c_str());
|
1544
|
+
}
|
1545
|
+
// If we already have a subchannel list, then keep using the existing
|
1546
|
+
// list, but still report back that the update was not accepted.
|
1547
|
+
if (endpoint_list_ != nullptr) return args.addresses.status();
|
1548
|
+
}
|
1549
|
+
// Create new subchannel list, replacing the previous pending list, if any.
|
1550
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace) &&
|
1551
|
+
latest_pending_endpoint_list_ != nullptr) {
|
1552
|
+
gpr_log(GPR_INFO, "[WRR %p] replacing previous pending subchannel list %p",
|
1553
|
+
this, latest_pending_endpoint_list_.get());
|
1554
|
+
}
|
1555
|
+
latest_pending_endpoint_list_ =
|
1556
|
+
MakeOrphanable<WrrEndpointList>(Ref(), std::move(addresses), args.args);
|
1557
|
+
// If the new list is empty, immediately promote it to
|
1558
|
+
// endpoint_list_ and report TRANSIENT_FAILURE.
|
1559
|
+
// TODO(roth): As part of adding dualstack backend support, we need to
|
1560
|
+
// also handle the case where the list of addresses for a given
|
1561
|
+
// endpoint is empty.
|
1562
|
+
if (latest_pending_endpoint_list_->size() == 0) {
|
1563
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace) &&
|
1564
|
+
endpoint_list_ != nullptr) {
|
1565
|
+
gpr_log(GPR_INFO, "[WRR %p] replacing previous subchannel list %p", this,
|
1566
|
+
endpoint_list_.get());
|
1567
|
+
}
|
1568
|
+
endpoint_list_ = std::move(latest_pending_endpoint_list_);
|
1569
|
+
absl::Status status =
|
1570
|
+
args.addresses.ok() ? absl::UnavailableError(absl::StrCat(
|
1571
|
+
"empty address list: ", args.resolution_note))
|
1572
|
+
: args.addresses.status();
|
1573
|
+
channel_control_helper()->UpdateState(
|
1574
|
+
GRPC_CHANNEL_TRANSIENT_FAILURE, status,
|
1575
|
+
MakeRefCounted<TransientFailurePicker>(status));
|
1576
|
+
return status;
|
1577
|
+
}
|
1578
|
+
// Otherwise, if this is the initial update, immediately promote it to
|
1579
|
+
// endpoint_list_.
|
1580
|
+
if (endpoint_list_.get() == nullptr) {
|
1581
|
+
endpoint_list_ = std::move(latest_pending_endpoint_list_);
|
1582
|
+
}
|
1583
|
+
return absl::OkStatus();
|
1584
|
+
}
|
1585
|
+
|
1586
|
+
RefCountedPtr<WeightedRoundRobin::EndpointWeight>
|
1587
|
+
WeightedRoundRobin::GetOrCreateWeight(const grpc_resolved_address& address) {
|
1588
|
+
auto key = grpc_sockaddr_to_uri(&address);
|
1589
|
+
if (!key.ok()) return nullptr;
|
1590
|
+
MutexLock lock(&endpoint_weight_map_mu_);
|
1591
|
+
auto it = endpoint_weight_map_.find(*key);
|
1592
|
+
if (it != endpoint_weight_map_.end()) {
|
1593
|
+
auto weight = it->second->RefIfNonZero();
|
1594
|
+
if (weight != nullptr) return weight;
|
1595
|
+
}
|
1596
|
+
auto weight = MakeRefCounted<EndpointWeight>(
|
1597
|
+
Ref(DEBUG_LOCATION, "EndpointWeight"), *key);
|
1598
|
+
endpoint_weight_map_.emplace(*key, weight.get());
|
1599
|
+
return weight;
|
1600
|
+
}
|
1601
|
+
|
1602
|
+
//
|
1603
|
+
// WeightedRoundRobin::WrrEndpointList::WrrEndpoint::OobWatcher
|
1604
|
+
//
|
1605
|
+
|
1606
|
+
void WeightedRoundRobin::WrrEndpointList::WrrEndpoint::OobWatcher::
|
1607
|
+
OnBackendMetricReport(const BackendMetricData& backend_metric_data) {
|
1608
|
+
double utilization = backend_metric_data.application_utilization;
|
1609
|
+
if (utilization <= 0) {
|
1610
|
+
utilization = backend_metric_data.cpu_utilization;
|
1611
|
+
}
|
1612
|
+
weight_->MaybeUpdateWeight(backend_metric_data.qps, backend_metric_data.eps,
|
1613
|
+
utilization, error_utilization_penalty_);
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
//
|
1617
|
+
// WeightedRoundRobin::WrrEndpointList::WrrEndpoint
|
1618
|
+
//
|
1619
|
+
|
1620
|
+
RefCountedPtr<SubchannelInterface>
|
1621
|
+
WeightedRoundRobin::WrrEndpointList::WrrEndpoint::CreateSubchannel(
|
1622
|
+
ServerAddress address, const ChannelArgs& args) {
|
1623
|
+
auto* wrr = policy<WeightedRoundRobin>();
|
1624
|
+
auto subchannel =
|
1625
|
+
wrr->channel_control_helper()->CreateSubchannel(std::move(address), args);
|
1626
|
+
// Start OOB watch if configured.
|
1627
|
+
if (wrr->config_->enable_oob_load_report()) {
|
1628
|
+
subchannel->AddDataWatcher(MakeOobBackendMetricWatcher(
|
1629
|
+
wrr->config_->oob_reporting_period(),
|
1630
|
+
std::make_unique<OobWatcher>(
|
1631
|
+
weight_, wrr->config_->error_utilization_penalty())));
|
1632
|
+
}
|
1633
|
+
return subchannel;
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
void WeightedRoundRobin::WrrEndpointList::WrrEndpoint::OnStateUpdate(
|
1637
|
+
absl::optional<grpc_connectivity_state> old_state,
|
1638
|
+
grpc_connectivity_state new_state, const absl::Status& status) {
|
1639
|
+
auto* wrr_endpoint_list = endpoint_list<WrrEndpointList>();
|
1640
|
+
auto* wrr = policy<WeightedRoundRobin>();
|
1641
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1642
|
+
gpr_log(GPR_INFO,
|
1643
|
+
"[WRR %p] connectivity changed for child %p, endpoint_list %p "
|
1644
|
+
"(index %" PRIuPTR " of %" PRIuPTR
|
1645
|
+
"): prev_state=%s new_state=%s (%s)",
|
1646
|
+
wrr, this, wrr_endpoint_list, Index(), wrr_endpoint_list->size(),
|
1647
|
+
(old_state.has_value() ? ConnectivityStateName(*old_state) : "N/A"),
|
1648
|
+
ConnectivityStateName(new_state), status.ToString().c_str());
|
1649
|
+
}
|
1650
|
+
if (new_state == GRPC_CHANNEL_IDLE) {
|
1651
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1652
|
+
gpr_log(GPR_INFO,
|
1653
|
+
"[WRR %p] child %p reported IDLE; requesting connection", wrr,
|
1654
|
+
this);
|
1655
|
+
}
|
1656
|
+
ExitIdleLocked();
|
1657
|
+
} else if (new_state == GRPC_CHANNEL_READY) {
|
1658
|
+
// If we transition back to READY state, restart the blackout period.
|
1659
|
+
// Skip this if this is the initial notification for this
|
1660
|
+
// subchannel (which happens whenever we get updated addresses and
|
1661
|
+
// create a new endpoint list). Also skip it if the previous state
|
1662
|
+
// was READY (which should never happen in practice, but we've seen
|
1663
|
+
// at least one bug that caused this in the outlier_detection
|
1664
|
+
// policy, so let's be defensive here).
|
1665
|
+
//
|
1666
|
+
// Note that we cannot guarantee that we will never receive
|
1667
|
+
// lingering callbacks for backend metric reports from the previous
|
1668
|
+
// connection after the new connection has been established, but they
|
1669
|
+
// should be masked by new backend metric reports from the new
|
1670
|
+
// connection by the time the blackout period ends.
|
1671
|
+
if (old_state.has_value() && old_state != GRPC_CHANNEL_READY) {
|
1672
|
+
weight_->ResetNonEmptySince();
|
1673
|
+
}
|
1674
|
+
}
|
1675
|
+
// If state changed, update state counters.
|
1676
|
+
if (!old_state.has_value() || *old_state != new_state) {
|
1677
|
+
wrr_endpoint_list->UpdateStateCountersLocked(old_state, new_state);
|
1678
|
+
}
|
1679
|
+
// Update the policy state.
|
1680
|
+
wrr_endpoint_list->MaybeUpdateAggregatedConnectivityStateLocked(status);
|
1681
|
+
}
|
1682
|
+
|
1683
|
+
//
|
1684
|
+
// WeightedRoundRobin::WrrEndpointList
|
1685
|
+
//
|
1686
|
+
|
1687
|
+
void WeightedRoundRobin::WrrEndpointList::UpdateStateCountersLocked(
|
1688
|
+
absl::optional<grpc_connectivity_state> old_state,
|
1689
|
+
grpc_connectivity_state new_state) {
|
1690
|
+
// We treat IDLE the same as CONNECTING, since it will immediately
|
1691
|
+
// transition into that state anyway.
|
1692
|
+
if (old_state.has_value()) {
|
1693
|
+
GPR_ASSERT(*old_state != GRPC_CHANNEL_SHUTDOWN);
|
1694
|
+
if (*old_state == GRPC_CHANNEL_READY) {
|
1695
|
+
GPR_ASSERT(num_ready_ > 0);
|
1696
|
+
--num_ready_;
|
1697
|
+
} else if (*old_state == GRPC_CHANNEL_CONNECTING ||
|
1698
|
+
*old_state == GRPC_CHANNEL_IDLE) {
|
1699
|
+
GPR_ASSERT(num_connecting_ > 0);
|
1700
|
+
--num_connecting_;
|
1701
|
+
} else if (*old_state == GRPC_CHANNEL_TRANSIENT_FAILURE) {
|
1702
|
+
GPR_ASSERT(num_transient_failure_ > 0);
|
1703
|
+
--num_transient_failure_;
|
1704
|
+
}
|
1705
|
+
}
|
1706
|
+
GPR_ASSERT(new_state != GRPC_CHANNEL_SHUTDOWN);
|
1707
|
+
if (new_state == GRPC_CHANNEL_READY) {
|
1708
|
+
++num_ready_;
|
1709
|
+
} else if (new_state == GRPC_CHANNEL_CONNECTING ||
|
1710
|
+
new_state == GRPC_CHANNEL_IDLE) {
|
1711
|
+
++num_connecting_;
|
1712
|
+
} else if (new_state == GRPC_CHANNEL_TRANSIENT_FAILURE) {
|
1713
|
+
++num_transient_failure_;
|
1714
|
+
}
|
1715
|
+
}
|
1716
|
+
|
1717
|
+
void WeightedRoundRobin::WrrEndpointList::
|
1718
|
+
MaybeUpdateAggregatedConnectivityStateLocked(absl::Status status_for_tf) {
|
1719
|
+
auto* wrr = policy<WeightedRoundRobin>();
|
1720
|
+
// If this is latest_pending_endpoint_list_, then swap it into
|
1721
|
+
// endpoint_list_ in the following cases:
|
1722
|
+
// - endpoint_list_ has no READY children.
|
1723
|
+
// - This list has at least one READY child and we have seen the
|
1724
|
+
// initial connectivity state notification for all children.
|
1725
|
+
// - All of the children in this list are in TRANSIENT_FAILURE.
|
1726
|
+
// (This may cause the channel to go from READY to TRANSIENT_FAILURE,
|
1727
|
+
// but we're doing what the control plane told us to do.)
|
1728
|
+
if (wrr->latest_pending_endpoint_list_.get() == this &&
|
1729
|
+
(wrr->endpoint_list_->num_ready_ == 0 ||
|
1730
|
+
(num_ready_ > 0 && AllEndpointsSeenInitialState()) ||
|
1731
|
+
num_transient_failure_ == size())) {
|
1732
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1733
|
+
const std::string old_counters_string =
|
1734
|
+
wrr->endpoint_list_ != nullptr ? wrr->endpoint_list_->CountersString()
|
1735
|
+
: "";
|
1736
|
+
gpr_log(GPR_INFO,
|
1737
|
+
"[WRR %p] swapping out endpoint list %p (%s) in favor of %p (%s)",
|
1738
|
+
wrr, wrr->endpoint_list_.get(), old_counters_string.c_str(), this,
|
1739
|
+
CountersString().c_str());
|
1740
|
+
}
|
1741
|
+
wrr->endpoint_list_ = std::move(wrr->latest_pending_endpoint_list_);
|
1742
|
+
}
|
1743
|
+
// Only set connectivity state if this is the current endpoint list.
|
1744
|
+
if (wrr->endpoint_list_.get() != this) return;
|
1745
|
+
// First matching rule wins:
|
1746
|
+
// 1) ANY child is READY => policy is READY.
|
1747
|
+
// 2) ANY child is CONNECTING => policy is CONNECTING.
|
1748
|
+
// 3) ALL children are TRANSIENT_FAILURE => policy is TRANSIENT_FAILURE.
|
1749
|
+
if (num_ready_ > 0) {
|
1750
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1751
|
+
gpr_log(GPR_INFO, "[WRR %p] reporting READY with endpoint list %p", wrr,
|
1752
|
+
this);
|
1753
|
+
}
|
1754
|
+
wrr->channel_control_helper()->UpdateState(
|
1755
|
+
GRPC_CHANNEL_READY, absl::Status(),
|
1756
|
+
MakeRefCounted<Picker>(wrr->Ref(), this));
|
1757
|
+
} else if (num_connecting_ > 0) {
|
1758
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1759
|
+
gpr_log(GPR_INFO, "[WRR %p] reporting CONNECTING with endpoint list %p",
|
1760
|
+
wrr, this);
|
1761
|
+
}
|
1762
|
+
wrr->channel_control_helper()->UpdateState(
|
1763
|
+
GRPC_CHANNEL_CONNECTING, absl::Status(),
|
1764
|
+
MakeRefCounted<QueuePicker>(nullptr));
|
1765
|
+
} else if (num_transient_failure_ == size()) {
|
1766
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_wrr_trace)) {
|
1767
|
+
gpr_log(GPR_INFO,
|
1768
|
+
"[WRR %p] reporting TRANSIENT_FAILURE with endpoint list %p: %s",
|
1769
|
+
wrr, this, status_for_tf.ToString().c_str());
|
1770
|
+
}
|
1771
|
+
if (!status_for_tf.ok()) {
|
1772
|
+
last_failure_ = absl::UnavailableError(
|
1773
|
+
absl::StrCat("connections to all backends failing; last error: ",
|
1774
|
+
status_for_tf.ToString()));
|
1775
|
+
}
|
1776
|
+
wrr->channel_control_helper()->UpdateState(
|
1777
|
+
GRPC_CHANNEL_TRANSIENT_FAILURE, last_failure_,
|
1778
|
+
MakeRefCounted<TransientFailurePicker>(last_failure_));
|
1779
|
+
}
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
//
|
1783
|
+
// factory
|
1784
|
+
//
|
1785
|
+
|
1786
|
+
class WeightedRoundRobinFactory : public LoadBalancingPolicyFactory {
|
1787
|
+
public:
|
1788
|
+
OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
|
1789
|
+
LoadBalancingPolicy::Args args) const override {
|
1790
|
+
if (!IsWrrDelegateToPickFirstEnabled()) {
|
1791
|
+
return MakeOrphanable<OldWeightedRoundRobin>(std::move(args));
|
1792
|
+
}
|
1793
|
+
return MakeOrphanable<WeightedRoundRobin>(std::move(args));
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
absl::string_view name() const override { return kWeightedRoundRobin; }
|
1797
|
+
|
1798
|
+
absl::StatusOr<RefCountedPtr<LoadBalancingPolicy::Config>>
|
1799
|
+
ParseLoadBalancingConfig(const Json& json) const override {
|
1800
|
+
return LoadFromJson<RefCountedPtr<WeightedRoundRobinConfig>>(
|
998
1801
|
json, JsonArgs(),
|
999
1802
|
"errors validating weighted_round_robin LB policy config");
|
1000
1803
|
}
|