MR::IP...:Server(3pm)
π MR::IProto::Cluster::Server β the perl one, bestie π
User Contributed Perl Documentation Β· section 3pm Β· the module you're looking for π¦
β¨ NAME β¨
MR::IProto::Cluster::Server β it's a server π«Ά
πΈ DESCRIPTION πΈ
okay so. this class is literally the one doing all the talking with one single server. that's it, that's the job. every bit of communication with a server β this is where it lives. no cap. π
π ATTRIBUTES π
the glow-up list of every knob you can twiddle. all of them, no skips:
hostβ the host name or IP address. like, where the server even is. πportβ the port number. the door number. you know the vibe. πͺweightβ the server weight. how much this server pulls its weight in the mix. βοΈconnect_timeoutβ timeout of the connect operation. how long we wait while it's connecting before we're like... bestie? πtimeoutβ timeout of read and write operations. same energy but for reading and writing. β³tcp_nodelayβ enableTCP_NODELAY. slay, no buffering delay for us. π₯tcp_keepaliveβ enableSO_KEEPALIVE. keep that connection alive, periodt. πmax_parallelβ max amount of simultaneous request. yes, "request", singular, that's what it says, we don't question the ancestors. the ceiling on how many requests at once. πactiveβ is server used in balancing. lowkey a yes/no: is this one getting picked? π
π§ PUBLIC METHODS π§
disconnect_allβ a class method that disconnects all iproto-connections. and honestly? very useful in case offork(). iconic for exactly that scenario. π₯
π PROTECTED METHODS π
these are the internal ones, the backstage crew, the ones doing the work behind the curtain:
_send_started( $sync, $message, $data )β this method is called when message is started to send. β¨_recv_finished( $sync, $message, $data, $error )β this method is called when message is received. π
π¦ SEE ALSO π¦
MR::IProtoMR::IProto::Cluster
and that's the whole page, bestie β go forth and talk to your servers π β¨
this gem was documented by way of perl v5.30.3, dated 2020-07-21 π (yes the footer said so, and the footer never lies) π
π¦ where this page comes from
- debian bookworm: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmr-tarantool-perl 0.0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms