class_docstr: Composite Base Server implementation from which u can inherit a specific custom composite one
class_docstr_tok: ["Composite","Base","Server","implementation","from","which","u","can","inherit","a","specific","custom","composite","one"]
code: def _server_kwargs(self):
      ret = []
      # ignore monitoring and tracing args since they are not copyable
      ignored_attrs = [
          "metrics_registry",
          "tracer_provider",
          "grpc_tracing_server_interceptors",
          "aio_tracing_client_interceptors",
          "tracing_client_interceptor",
      ]
      for port, protocol in zip(self.ports, self.protocols):
          # ignore monitoring and tracing args since they are not copyable
          runtime_args = self._deepcopy_with_ignore_attrs(
              self.runtime_args, ignored_attrs
          )
          runtime_args.port = port
          runtime_args.protocol = protocol
          server_kwargs = {
              k: v
              for k, v in self._kwargs.items()
              if k != "runtime_args"
          }
          server_kwargs["runtime_args"] = dict(vars(runtime_args))
          server_kwargs["req_handler"] = self._request_handler
          ret.append(server_kwargs)
  
      return ret
  
file_path: jina/jina/serve/runtimes/servers/composite.py
imports: import asyncio
  import copy
  from typing import Any, List, TYPE_CHECKING
  from jina.serve.runtimes.servers import BaseServer
label_desc: Use image node_id 2 for calling the CompositeBaseServer obj's underlying member method code with example usage: obj._server_kwargs() and returns: ret