Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
0b9fa597
Commit
0b9fa597
authored
7 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
iproto: warn when we reach the limit on input or working fibers
parent
40a7b0e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/box/iproto.cc
+6
-7
6 additions, 7 deletions
src/box/iproto.cc
src/fiber_pool.c
+2
-0
2 additions, 0 deletions
src/fiber_pool.c
with
8 additions
and
7 deletions
src/box/iproto.cc
+
6
−
7
View file @
0b9fa597
...
...
@@ -314,6 +314,8 @@ iproto_connection_is_idle(struct iproto_connection *con)
static
inline
void
iproto_connection_stop
(
struct
iproto_connection
*
con
)
{
say_warn
(
"readahead limit reached, stopping input on connection %s"
,
sio_socketname
(
con
->
input
.
fd
));
assert
(
rlist_empty
(
&
con
->
in_stop_list
));
ev_io_stop
(
con
->
loop
,
&
con
->
input
);
rlist_add_tail
(
&
stopped_connections
,
&
con
->
in_stop_list
);
...
...
@@ -480,9 +482,8 @@ static const struct cmsg_hop sync_route[] = {
};
static
struct
iproto_connection
*
iproto_connection_new
(
const
char
*
name
,
int
fd
)
iproto_connection_new
(
int
fd
)
{
(
void
)
name
;
struct
iproto_connection
*
con
=
(
struct
iproto_connection
*
)
mempool_alloc_xc
(
&
iproto_connection_pool
);
con
->
input
.
data
=
con
->
output
.
data
=
con
;
...
...
@@ -1251,13 +1252,11 @@ static void
iproto_on_accept
(
struct
evio_service
*
/* service */
,
int
fd
,
struct
sockaddr
*
addr
,
socklen_t
addrlen
)
{
char
name
[
SERVICE_NAME_MAXLEN
];
snprintf
(
name
,
sizeof
(
name
),
"%s/%s"
,
"iobuf"
,
sio_strfaddr
(
addr
,
addrlen
));
(
void
)
addr
;
(
void
)
addrlen
;
struct
iproto_connection
*
con
;
con
=
iproto_connection_new
(
name
,
fd
);
con
=
iproto_connection_new
(
fd
);
/*
* Ignore msg allocation failure - the queue size is
* fixed so there is a limited number of msgs in
...
...
This diff is collapsed.
Click to expand it.
src/fiber_pool.c
+
2
−
0
View file @
0b9fa597
...
...
@@ -129,6 +129,8 @@ fiber_pool_cb(ev_loop *loop, struct ev_watcher *watcher, int events)
* get scheduled again - there are enough
* worker fibers already, so just leave.
*/
say_warn
(
"fiber pool size %d reached on endpoint %s"
,
pool
->
max_size
,
pool
->
endpoint
.
name
);
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment