Intrvw: Difference between revisions
→Challenge
Line 184:
== Challenge ==
= CouchBase =
* OOM Killer
* Page Fault
A page fault (sometimes called #PF, PF or hard fault) is a type of exception raised by computer hardware when a running program accesses a memory page that is not currently mapped by the memory management unit (MMU) into the virtual address space of a process.
* Swap Memory
* DNS Rate Limiting Troubleshoot
Create Static entry
Increase Cache Time
* DNS latency in Server or Network Troubleshoot:
Check RTT for other traffic & DNS Specific traffic.
* Print below logs:
<pre>
startTime : 12332121324
endTime : 21342313222
serviceName : abc
status : 200
------------------------
startTime : 12332121324
endTime : 21342313222
serviceName : abc
status : 200
------------------------
startTime : 12332121324
endTime : 21342313222
serviceName : abc
status : 200
------------------------
startTime : 12332121324
endTime : 21342313222
serviceName : abc
status : 200
------------------------
startTime : 12332121324
endTime : 21342313222
serviceName : abc
status : 200
------------------------
<\pre>
* My Solution:
<pre>
f=open('text.txt','r')
l=f.readlines()
a=[]
for i in l:
if ":" in i:
a.append((i.strip('\n')).split(':'))
b=[]
for i in range(len(a)):
b.append(a[i][0])
b=set(b)
for i in b:
print(i,end='')
for i in range(len(a)):
if "startTime " in a[i]:
print(a[i][1],a[i+1][1],a[i+2][1],a[i+3][1],end='')
print('\n', end="")
<\pre>
|