Skip to content

Commit

Permalink
[performance] #326 readinessProbe 10초 타임아웃
Browse files Browse the repository at this point in the history
  • Loading branch information
ghkdqhrbals committed Dec 17, 2023
1 parent ae1ffa9 commit 83cabb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
5 changes: 3 additions & 2 deletions k8s/onlychat/deployment/chatting-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spec:
httpGet:
path: /health
port: 8030
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 10 # 헬스체크 타임아웃 10초로 설정
initialDelaySeconds: 10 # 파드 실행 후 10초 후부터 체크
periodSeconds: 5 # 5초마다 체크
restartPolicy: Always

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class ChatController {



@Timed("GET /chats")
@GetMapping("/chats")
@Operation(summary = "Get chat records")
public ResponseEntity<?> findChatRecords(@RequestParam("roomId") Long roomId) {
Expand Down Expand Up @@ -68,7 +67,6 @@ public ResponseEntity<?> changeUserStatus(@RequestBody RequestChangeUserStatusDT
}

// 채팅 저장
@Timed("POST /CHAT")
@PostMapping(value = "/chat")
@Operation(summary = "Save chat")
public ResponseEntity<?> addChat(@RequestBody RequestAddChatMessageDTO req) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.example.commondto.dto.friend.FriendRequest;
import com.example.commondto.dto.friend.FriendResponse;
import com.example.commondto.dto.friend.FriendResponse.FriendDTO;
import io.micrometer.core.annotation.Timed;
import io.swagger.v3.oas.annotations.Operation;
import java.util.List;
import lombok.AllArgsConstructor;
Expand Down

0 comments on commit 83cabb7

Please sign in to comment.