CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8a58a0898843 repo.com/test_nginx_dev "..." 3 seconds ago Up 2 seconds 80/tcp, 0.0.0.0:9000->9000/tcp test_nginx_dev
a1fzd92a1c9d repo.com/test_django_dev "..." 3 seconds ago Up 2 seconds 8080/tcp, 0.0.0.0:8100->8100/tcp test_django_dev
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7516491ae772 repo.com/test2_nginx_dev "..." 7 seconds ago Up 5 seconds 0.0.0.0:80->80/tcp test2_nginx_dev
59a344089c51 repo.com/test2_django_dev "..." 7 seconds ago Up 6 seconds 8080/tcp test2_django_dev
First, test2_nginx_dev and test2_django_dev were created with docker-compose. After that, if I create test_nginx_dev and test_django_dev with docker-compose
test2_nginx_dev and test2_django_dev disappear. how do i solve it
Related
I am unsure if this is the platform to ask. But hopefully it is :).
I've got a 3 node setup of ceph.
node1
mds.node1 , mgr.node1 , mon.node1 , osd.0 , osd.1 , osd.6
14.2.22
node2
mds.node2 , mon.node2 , osd.2 , osd.3 , osd.7
14.2.22
node3
mds.node3 , mon.node3 , osd.4 , osd.5 , osd.8
14.2.22
For some reason though, When I down one node, It does not start backfilling/recovery at all. It just reports 3 osd's down as below. But does nothing to repair it....
If I run a ceph -s I get the below ouput:
[root#node1 testdir]# ceph -s
cluster:
id: 8932b76b-282b-4385-bee8-5c295af88e74
health: HEALTH_WARN
3 osds down
1 host (3 osds) down
Degraded data redundancy: 30089/90267 objects degraded (33.333%), 200 pgs degraded, 512 pgs undersized
1/3 mons down, quorum node1,node2
services:
mon: 3 daemons, quorum node1,node2 (age 2m), out of quorum: node3
mgr: node1(active, since 48m)
mds: homeFS:1 {0=node1=up:active} 1 up:standby-replay
osd: 9 osds: 6 up (since 2m), 9 in (since 91m)
data:
pools: 4 pools, 512 pgs
objects: 30.09k objects, 144 MiB
usage: 14 GiB used, 346 GiB / 360 GiB avail
pgs: 30089/90267 objects degraded (33.333%)
312 active+undersized
200 active+undersized+degraded
io:
client: 852 B/s rd, 2 op/s rd, 0 op/s wr
[root#node1 testdir]#
The odd thing though, when I boot up my 3rd node again it does recover and sync. But it looks like it's backfilling just not starting at all...
Is there something that might be causing it?
Update
What I did notice, If I mark a drive as out, it does recover it... But when the server node's down, and the drive's marked as out, it then does not recover it at all...
Update 2:
I noticed while experimenting that if the OSD is up, but out, It does recover... When the OSD is marked as down it does not begin to recover at all...
The default is 10 minutes for ceph to wait until it marks OSDs as out (mon_osd_down_out_interval). This can help in case a server just needs a reboot and returns within 10 minutes then all is good. If you need a longer maintenance window but you're not sure if it will be longer than 10 minutes, but the server will eventually return, set ceph osd set noout to prevent unnecessary rebalancing.
I have a Lambda function that has 3 event triggers here are the Cron job for each:
Cron 1: cron(50/1 22 * * ? *)
Cron 2: cron(50/1 12 * * ? *)
Cron 3: cron(*/15 * * * ? *)
Now Cron 2 Timestamp logs reads as follows, which is ok. Notice that it starts 2-3 seconds into the intended trigger:
10
2021-07-10T05:59:03.867-07:00
11
2021-07-10T05:59:03.867-07:00
12
2021-07-10T05:59:02.314-07:00
START
13
2021-07-10T05:58:02.988-07:00
END
14
2021-07-10T05:58:02.988-07:00
15
2021-07-10T05:58:02.547-07:00
START
BUT Cron 1 & 3 starts over 30+ seconds into the intended trigger. I compared everything possible and there are no settings that are different (to my knowledge). Any idea why 2 of the 3 events have a delay but one doesn't? I understand a small 1-5 second delay by reading here https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html but somethings seems to be off.
2021-07-10T06:30:37.253-07:00
2
2021-07-10T06:30:37.253-07:00
3
2021-07-10T06:30:33.929-07:00
4
2021-07-10T06:15:36.931-07:00
5
2021-07-10T06:15:36.931-07:00
6
2021-07-10T06:15:33.881-07:00
7
2021-07-10T06:00:34.037-07:00
8
2021-07-10T06:00:34.037-07:00
9
2021-07-10T06:00:33.596-07:00
The precision of Event Bridge is one minute:
All scheduled events use UTC+0 time zone, and the minimum precision for a schedule is one minute. Your scheduled rule runs within that minute, but not on the precise 0th second.
So your delays are perfectly fine and within the 1 minute interval.
I recently created an Azure WebJob which is intended to be executed every 5 minutes, forever. Thing comes when I can see it just gets executed every 5 minutes but just 5 times:
[08/25/2020 12:41:51 > 2e704f: INFO] The next 5 occurrences of the schedule will be: *
[08/25/2020 12:41:51 > 2e704f: INFO] 8/25/2020 2:46:51 PM *
[08/25/2020 12:41:51 > 2e704f: INFO] 8/25/2020 2:51:51 PM *
[08/25/2020 12:41:51 > 2e704f: INFO] 8/25/2020 2:56:51 PM *
[08/25/2020 12:41:51 > 2e704f: INFO] 8/25/2020 3:01:51 PM *
[08/25/2020 12:41:51 > 2e704f: INFO] 8/25/2020 3:06:51 PM
On my Azure AppService => WebJobs panel I can see the last time it got executed was 17 hours ago, which confirms this just got fired those shown scheduled times.
My webjob-publish-settings.json is:
{
"$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
"webJobName": "Inbox",
"runMode": "Scheduled"
}
My Functions.cs contains a single async method with this firm:
public async static Task SomethingAsync([TimerTrigger("00:05:00", RunOnStartup = true, UseMonitor = true)] TimerInfo timer)
And my Program.cs sets JobHostConfiguration to call the UseTimers() method:
public static void Main()
{
var config = new JobHostConfiguration();
if (config.IsDevelopment)
{
config.UseDevelopmentSettings();
}
config.UseTimers();
var host = new JobHost(config);
host.Start();
}
I've already tried using a CRON expresion instead the TimeSpan.FromMinutes expression already set with the same luck (kept the TimeSpan expression since it's easier to read) with the same result. Note I'm using the v2.3.0 version of the Azure WebJobs.
What am I exactly missing? Any help will be appreciated. Many thanks.
The root of my problem was a bad interpretation of concepts.
What I really needed was a WebJob to call my function every 5 minutes. I thought I needed a scheduled WebJob and looking at the console output and seeing the "scheduled ocurrences" made me think they were being called when in fact they weren't.
What was really happening was that my WebJob was getting started, launching the function (thanks to the RunOnStartup = true), it was identifying the specified TimerTrigger and then the JobHost ended.
What did I change? Moved to continuous WebJob.
Changed the webjob-publish-settings.json's runMode to "Continuous"
Changed the JobHost's method from Call() to RunAndBlock()
Set the TimerTrigger to 1 minute to perform the tryout.
Be careful about the third point, where I was originally intented to launch the function every 5 minutes and I remember suffering SCM_COMMAND_IDLE_TIMEOUT errors since the CPU was idle for more than 120 seconds. That's another war I will probably fight later on.
So now I'm finally seing my Function called every minute:
Functions.SomethingAsync (08/26/2020 09:42:4 ...) Success 41 seconds ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:41:4 ...) Success 2 minutes ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:40:4 ...) Success 3 minutes ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:39:4 ...) Success 4 minutes ago (1 s running time)
Functions.SomethingAsync (08/26/2020 09:38:4 ...) Success 5 minutes ago (1 s running time)
Functions.SomethingAsync (08/26/2020 09:37:4 ...) Success 6 minutes ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:36:4 ...) Success 7 minutes ago (1 s running time)
Functions.SomethingAsync (08/26/2020 09:35:4 ...) Success 8 minutes ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:34:4 ...) Success 9 minutes ago (2 s running time)
Functions.SomethingAsync (08/26/2020 09:33:4 ...) Success 10 minutes ago (1 s running time)
My workstation has Ubuntu OS 18.04. I use the ldapcpp library from OpenLDAP-2.4.47 in my Qt project for authorization on MS ActiveDirectory server. The code works fine.
LDAPControlSet* ctrls=new LDAPControlSet;
ctrls->add(LDAPCtrl(LDAP_CONTROL_MANAGEDSAIT));
cons->setServerControls(ctrls);
LDAPConnection *lc=new LDAPConnection("dc.mydomen.local",389);
lc->setConstraints(cons);
lc->bind("CN=username,OU=Programmer,OU=IVO,DC=mydomen,DC=local", "password",cons);
My workstation is in the domain.
username#kubuntuit01:~$ sudo net ads testjoin
Join is OK
username#kubuntuit01:~$ sudo net ads keytab list
Vno Type Principal
2 des-cbc-crc HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 des-cbc-crc HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 des-cbc-md5 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 des-cbc-md5 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 aes128-cts-hmac-sha1-96 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 aes128-cts-hmac-sha1-96 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 aes256-cts-hmac-sha1-96 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 aes256-cts-hmac-sha1-96 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 arcfour-hmac-md5 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 arcfour-hmac-md5 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
But i cannot connect using the saslbind method using the code:
LDAPAsynConnection * sas;
sas = new LDAPAsynConnection();
sas->init("dc.mydomen.local",389);
sas->saslBind("KERBEROS","uid=HOST/KUBUNTUIT01,cn=VIVEYA.LOCAL,cn=gssapi,cn=auth",cons);
or
sas->saslBind("GSSAPI","uid=HOST/KUBUNTUIT01,cn=VIVEYA.LOCAL,cn=gssapi,cn=auth",cons);
In debug mode in the debugger, the message string contains the text: "80090308: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 57, v1db1". I tried different authorization options, I don’t know what to try next.
thank
I need a script to check time difference between local servers and internet time.
To obtain local time I'd run something like
[root#check ~]# ntpdate -q timeserver
server x.x.x.x, stratum 1, offset -0.034282, delay 0.04228
11 Dec 12:04:21 ntpdate[62714]: adjust time server x.x.x.x offset -0.034282 sec
from above output we could grab,
11 Dec 12:04:21
To obtain internet time I'd like to run something like
[root#check~]# curl http://www.timeapi.org/utc/now
2015-12-11T12:04:43+00:00
from above output we could grab,
2015-12-11T12:04:43
Then echo ("Time drift detected"), if local time > internet time
I'm a newbie to shell scipting and your support is appreciated.
Many thanks