You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// deployApplicationSessions grab a list of pending session and try to allocate them to pods and call OpenSession on choosen pod.
172
-
// session status change in memory to SessionStatusStarting, but do not update etcd to avoid unnecessary resync.
173
-
// session status will be changed in etcd until pod report back, if fornax core restart and lost these memory state, it rely on pod to report back.
174
-
// It also cleanup session when a session is in Starting or Pending state for more than a timeout duration.
169
+
// deployApplicationSessions group session into pending, timeout, deleting states, and
170
+
// 1, assign pending session to idle pods and call OpenSession on choosen pod.
171
+
// session status change in memory to SessionStatusStarting, session is store in node and report back,
172
+
// if fornax core restart and lost these memory state, it rely on pod to report back.
173
+
// 2, It cleanup timeout session which stuck in pending or starting session for more than a timeout duration.
174
+
// and call node to close session if session is in starting state which was sent to a pod before.
175
175
// session is changed to SessionStatusTimeout, session client need to create a new session.
176
-
// It also cleanup session in deletingSessions when a session is in Starting or Pending state for more than a timeout duration.
177
-
// session is changed to SessionStatusClosed, session client need to create a new session.
178
-
// session timedout and closed are removed from application pool's session list, so, syncApplicationPods do not need to consider these sessions anymore
176
+
// 3, if a session is being deleted by client(aka, close session), it call node to close session session,
177
+
// timedout and closed session are removed from application's session pool
0 commit comments