HTML message rejected: Re: Distribute continuous integration (build) to servers outside docker container
Dear Fuego users,
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.
Quoted 58 lines · On Thu, Feb 1, 2024 at 11:52 PM <[email protected]> wrote:
Greetings!
This is the mlmmj program managing the <[email protected]> mailing list.
Your message to <[email protected]> was not delivered to the list because it contained a HTML part. Only text/plain messages are allowed on this list.
Please configure your mail client to only send plain text mail.
For your reference, the rejected message follows below.
---------- Forwarded message ----------
From: dhinakar k <[email protected]>
To: [email protected], [email protected], "Bird, Timothy" <[email protected]> Cc:
Bcc:
Date: Thu, 1 Feb 2024 23:51:30 +0530
Subject: Re: Distribute continuous integration (build) to servers outside docker container Dear Fuego users,I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.Quoted 17 lines · dhinakar k
Dear Fuego users,
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.
Dhinakar, See my answers inline below..
Quoted 21 lines
-----Original Message-----
From: dhinakar k <[email protected]>
Dear Fuego users,I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
Quoted 5 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Unfortunately, I have not tried this, so I'm not familiar with how Jenkins supports distributed jobs.
But I have a few ideas to share.
First, I'm working now on an update to the docker container, from a distribution base of Debian stretch to Debian bullseye, and from a Jenkins version of 2.249.3 to 2.414.1 (thanks to a patch provided by Fuego user Yoichi Tachibana). I have applied the patches, but found some issues with the build instructions for some packages working in Debian bullseye. So I have not committed the changes to
the Fuego master branch yet. I hope to be able to do this soon.
This might help with the issue of not being able to use the ssh agent plugin for Jenkins.
Second, it may be possible to do some kind of proxy job submission thing, by creating proxy jobs on the main Jenkins server, but having the jobs actually executed ("built", in Jenkins terminology) on secondary servers.
There are a number of ways of supporting remote execution, and how you implement it will determine where the CPU cycles and memory usage is during the job, and where the logs end up living (and taking up space.)
If you are using 'ttc' as your transport layer, recent versions of ttc have support for remote boards via ssh (configured in ttc.conf). But that would leave logs on the master server.
There are multiple ways to configure Fuego on the secondary servers - for example using Docker containers or installing Fuego natively. In any event, it may be possible to set up proxy jobs on the main server that call 'ftc' on the secondary
servers, to run the jobs of interest. Depending on how this was structured
you may end up with build artifacts and logs on the secondary system, and only Jenkins artifacts and logs on the main system (which should save space).
It might be good to get a more detailed description of your Jenkins setup to be able to understand the options available.
Quoted 3 lines
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
I'm not sure how to backup a container in Docker. There's the 'docker container commit' command, but I haven't used that.
In general, to trim down you data usage you will want to perform a few operations. Inside Jenkins, you can delete individual builds. You can likely automate this (not have to do it manually through the UI), by using the remote API. That should work for the material that is inside the container. Lots of data, however, including the build artifacts and the logs are natively on the host, and are only present in the container through bind mounts.
This means you can remove this data directly using file operations (e.g. rm) on the host. There are a few nuances to this, however, as some of the build directories are referenced via symlinks.
'ftc' currently supports removing jobs and nodes. I don't recall off the top of my head if this includes removing all the builds for a job or not. But in any case, it sounds like you only want to remove some of the builds/runs, not the jobs themselves.
We could possibly support 'ftc rm-run', which could remove specific runs. 'ftc query-runs' could be used to generate a list of runs (e.g. that were created before a certain date).
Please provide a few more details, and maybe we can talk through and/or develop some solutions that will help meet your needs.
-- Tim
Quoted 72 lines · On Thu, Feb 1, 2024 at 11:52 PM <[email protected]> wrote:
Quoted 25 lines
Greetings!
This is the mlmmj program managing the <[email protected]> mailing list.
Your message to <[email protected]> was not delivered to the list because it contained a HTML part. Only text/plain messages are allowed on this list.
Please configure your mail client to only send plain text mail.
For your reference, the rejected message follows below.
---------- Forwarded message ----------
From: dhinakar k <[email protected]>
To: [email protected], [email protected], "Bird, Timothy" <[email protected]> Cc:
Bcc:
Date: Thu, 1 Feb 2024 23:51:30 +0530
Subject: Re: Distribute continuous integration (build) to servers outside docker container Dear Fuego users,Quoted 1 line
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 1 line
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).
Quoted 2 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
Quoted 2 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 14 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.Quoted 4 lines · dhinakar k
Dear Fuego users,
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 1 line
Quoted 1 line
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).
Quoted 2 lines
Quoted 2 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
Quoted 2 lines
Quoted 2 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 8 lines
Quoted 8 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.
Hi Tim,
I had sent a reply to your response on 3rd Feb.2024, not sure if it had reached you. I am posting the same message below again.
Thanks a lot for your prompt reply.
Iam looking forward to try the updated docker container with an upgraded distribution base from Debian stretch to Debian bullseye, and from a Jenkins version of 2.249.3 to 2.414.1. Please let me whenever it is available. We are migrating to another server, so Iam looking for best options to transfer all the content to the new server. Since the docker container size is huge I want to trim it down by removing unwanted old logs. Also, I am worried about server crash and hard disk crash due to so many read/write cycles (that happens during continuous integration). Hence looking for the best way to back up the container and also to distribute the load & read/write cycles to another server (via an ssh agent). I tried with plain Jenkins via ssh credentials plugin, it seems feasible. Hence if fuego upgrades to debian bullseye it would be really helpful.
Also, would like to know, when login credentials support will be available in fuego? Because as a security measure we are supposed to have login credentials for each user. Will be available after debian upgrade?
With respect to removing the logs I will figure out the best way as I see so many options but not sure if that will reduce the container size directly or need to run some container commands to trim it down. I will explore that as well and email my observations in this forum.
Regards,
Dhinakar K.
-----Original Message-----
From: Bird, Tim [mailto:[email protected]]
Sent: Saturday, February 3, 2024 3:44 AM
To: dhinakar k <[email protected]>; [email protected]; [email protected]
Subject: RE: HTML message rejected: Re: Distribute continuous integration (build) to servers outside docker container
Dhinakar, See my answers inline below..
Quoted 20 lines
-----Original Message-----
From: dhinakar k <[email protected]> Dear Fuego users,I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
Quoted 5 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Unfortunately, I have not tried this, so I'm not familiar with how Jenkins supports distributed jobs.
But I have a few ideas to share.
First, I'm working now on an update to the docker container, from a distribution base of Debian stretch to Debian bullseye, and from a Jenkins version of 2.249.3 to 2.414.1 (thanks to a patch provided by Fuego user Yoichi Tachibana). I have applied the patches, but found some issues with the build instructions for some packages working in Debian bullseye. So I have not committed the changes to
the Fuego master branch yet. I hope to be able to do this soon.
This might help with the issue of not being able to use the ssh agent plugin for Jenkins.
Second, it may be possible to do some kind of proxy job submission thing, by creating proxy jobs on the main Jenkins server, but having the jobs actually executed ("built", in Jenkins terminology) on secondary servers.
There are a number of ways of supporting remote execution, and how you implement it will determine where the CPU cycles and memory usage is during the job, and where the logs end up living (and taking up space.)
If you are using 'ttc' as your transport layer, recent versions of ttc have support for remote boards via ssh (configured in ttc.conf). But that would leave logs on the master server.
There are multiple ways to configure Fuego on the secondary servers - for example using Docker containers or installing Fuego natively. In any event, it may be possible to set up proxy jobs on the main server that call 'ftc' on the secondary
servers, to run the jobs of interest. Depending on how this was structured
you may end up with build artifacts and logs on the secondary system, and only Jenkins artifacts and logs on the main system (which should save space).
It might be good to get a more detailed description of your Jenkins setup to be able to understand the options available.
Quoted 3 lines
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
I'm not sure how to backup a container in Docker. There's the 'docker container commit' command, but I haven't used that.
In general, to trim down you data usage you will want to perform a few operations.
Inside Jenkins, you can delete individual builds. You can likely automate this (not have to do it manually through the UI), by using the remote API. That should work for the material that is inside the container. Lots of data, however, including the build artifacts and the logs are natively on the host, and are only present in the container through bind mounts.
This means you can remove this data directly using file operations (e.g. rm) on the host. There are a few nuances to this, however, as some of the build directories are referenced via symlinks.
'ftc' currently supports removing jobs and nodes. I don't recall off the top of my head if this includes removing all the builds for a job or not. But in any case, it sounds like you only want to remove some of the builds/runs, not the jobs themselves. We could possibly support 'ftc rm-run', which could remove specific runs. 'ftc query-runs'
could be used to generate a list of runs (e.g. that were created before a certain date).
Please provide a few more details, and maybe we can talk through and/or develop some solutions that will help meet your needs.
-- Tim
Quoted 87 lines · On Thu, Feb 1, 2024 at 11:52 PM <[email protected]> wrote:
Quoted 26 lines
Greetings!
This is the mlmmj program managing the <[email protected]> mailing list.
Your message to <[email protected]> was not delivered to the list because it contained a HTML part. Only text/plain messages are allowed on this list.
Please configure your mail client to only send plain text mail.
For your reference, the rejected message follows below.
---------- Forwarded message ----------
From: dhinakar k <[email protected]>
To: [email protected], [email protected], "Bird, Timothy" <[email protected]>
Cc:
Bcc:
Date: Thu, 1 Feb 2024 23:51:30 +0530
Subject: Re: Distribute continuous integration (build) to servers outside docker container Dear Fuego users,Quoted 2 lines
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 3 lines
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
too many builds happening, which puts pressure on the hard disk (so
many read/writes) and also increases the docker container size (because of build logs).Quoted 4 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all
cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.Quoted 3 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 16 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.Quoted 6 lines · dhinakar k
Dear Fuego users,
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 3 lines
Quoted 3 lines
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
too many builds happening, which puts pressure on the hard disk (so
many read/writes) and also increases the docker container size (because of build logs).Quoted 4 lines
Quoted 4 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all
cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.Quoted 4 lines
Quoted 4 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 8 lines
Quoted 8 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.
Hey Dhinakar,
Sorry to not respond sooner. There was a lot to process in your email, and some of it I don't have answers for, but I'll try to give some status and feedback where I can.
Quoted 10 lines
-----Original Message-----
From: dhinakar.k <[email protected]>
Hi Tim,I had sent a reply to your response on 3rd Feb.2024, not sure if it had reached you. I am posting the same message below again.
Thanks a lot for your prompt reply.
Iam looking forward to try the updated docker container with an upgraded distribution base from Debian stretch to Debian bullseye, and from a Jenkins version of 2.249.3 to 2.414.1. Please let me whenever it is available.
OK - Will do. I haven't been able to allocate time for testing and fixing it, so I didn't want to push it to the master branch. If I pushed something to a testing branch, would you be able to download from there and test it?
One issue that came up is that some of the toolchains for some of my old boards/distros are not supported (ie don't work) in Debian bullseye, and so I was looking for solutions for that.
Quoted 3 lines
We are migrating to another server, so Iam looking for best
options to transfer all the content to the new server. Since the docker container size is huge I want to trim it down by removing unwanted old logs.
It would be good to know where the container size is coming from. Is it in the Fuego build directories, the Fuego run directories (where Fuego logs and run artifacts are stored), or in the Jenkins build directories (where Jenkins logs and artifacts are)? The materials under /fuego-rw should be on the host system, and not inside the container itself (since these are volume mounts). But I don't know how this space is accounted to the container (if any). It shouldn't be in any container image.
The materials under /var/lib/jenkins are inside the container image.
Can you run the following commands, inside your container, and send the results:
# du -sh /var/lib/jenkins # du -sh /var/lib/jenkins/* | sort -h # du -sh /fuego-rw # du -sh /fuego-rw/buildzone/* | sort -h # du -sh /fuego-rw/logs/* | sort -h # ftc list-nodes | wc -l # ftc list-jobs | wc -l # ftc list-runs | wc -l
Outside the container, can you run:
$ docker image ls (and remove any lines not related to fuego images)
Quoted 4 lines
Also, I am worried about server crash and hard disk crash due to so many read/write cycles (that happens during continuous integration). Hence looking for the best way to back up the container and also to distribute the load & read/write cycles to another server (via an ssh agent). I tried with plain Jenkins via ssh credentials plugin, it seems feasible. Hence if fuego upgrades to debian bullseye it would be really helpful.
OK - I'll keep plugging away at this.
Quoted 3 lines
Also, would like to know, when login credentials support will be available in fuego? Because as a security measure we are supposed to have login credentials for each user. Will be available after debian upgrade?
I believe you are referring to Jenkins credentials? It appears that Jenkins supports credentials in version 2.414, which is the new version of Jenkins in the new docker container (with the Debian upgrade). So I believe the answer is yes.
But I don't know how Jenkins credentials relate to user accounts. I haven't ever set up Jenkins to handle multiple user accounts. Indeed, in my current 2.414.1 Jenkins setup I can see an option to list "People" (which I presume is registered user accounts), but I can find no way to create or manage new user accounts.
Quoted 2 lines
With respect to removing the logs I will figure out the best way as I see so many options but not sure if that will reduce the container size directly or need to run some container commands to trim it down. I will explore that as well and email my observations in this forum.
I have considered adding an "rm-run" sub-command to ftc, which would allow you to remove old runs. However, I'd like to see if it's the run data that is causing the size problem that you are seeing.
If you want to archive the data for an individual run, then you can use 'ftc package-run' and move the resulting package to some long-term storage device (before, ostensibly, removing that run from the system.)
I hope this is helpful.
-- Tim
Quoted 182 lines
Regards,
Dhinakar K.-----Original Message-----
From: Bird, Tim [mailto:[email protected]]
Sent: Saturday, February 3, 2024 3:44 AM
To: dhinakar k <[email protected]>; [email protected]; [email protected]
Subject: RE: HTML message rejected: Re: Distribute continuous integration (build) to servers outside docker containerDhinakar, See my answers inline below..
Quoted 20 lines
-----Original Message-----
From: dhinakar k <[email protected]> Dear Fuego users,I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to implement it.
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are too many builds happening, which puts pressure on the hard disk (so many read/writes) and also increases the docker container size (because of build logs).Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will happen on the agent on another server. The idea is to move out all cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers (outside docker container) so that docker size won't be growing rapidly.
Quoted 5 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of compatibility issues (jenkins version needs to be upgraded).
If anyone already tried and has a solution for this issue please let me know.
Unfortunately, I have not tried this, so I'm not familiar with how Jenkins supports distributed jobs.
But I have a few ideas to share.
First, I'm working now on an update to the docker container, from a distribution base of Debian stretch to Debian bullseye, and from a Jenkins version of 2.249.3 to 2.414.1 (thanks to a patch provided by Fuego user Yoichi Tachibana). I have applied the patches, but found some issues with the build instructions for some packages working in Debian bullseye. So I have not committed the changes to
the Fuego master branch yet. I hope to be able to do this soon.This might help with the issue of not being able to use the ssh agent plugin for Jenkins.
Second, it may be possible to do some kind of proxy job submission thing, by creating proxy jobs on the main Jenkins server, but having the jobs actually executed ("built", in Jenkins terminology) on secondary servers.
There are a number of ways of supporting remote execution, and how you implement it will determine where the CPU cycles and memory usage is during the job, and where the logs end up living (and taking up space.)
If you are using 'ttc' as your transport layer, recent versions of ttc have support for remote boards via ssh (configured in ttc.conf). But that would leave logs on the master server.
There are multiple ways to configure Fuego on the secondary servers - for example using Docker containers or installing Fuego natively. In any event, it may be possible to set up proxy jobs on the main server that call 'ftc' on the secondary
servers, to run the jobs of interest. Depending on how this was structured
you may end up with build artifacts and logs on the secondary system, and only Jenkins artifacts and logs on the main system (which should save space).It might be good to get a more detailed description of your Jenkins setup to be able to understand the options available.
Quoted 3 lines
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
I'm not sure how to backup a container in Docker. There's the 'docker container commit' command, but I haven't used that.
In general, to trim down you data usage you will want to perform a few operations.
Inside Jenkins, you can delete individual builds. You can likely automate this (not have to do it manually through the UI), by using the remote API. That should work for the material that is inside the container. Lots of data, however, including the build artifacts and the logs are natively on the host, and are only present in the container through bind mounts.This means you can remove this data directly using file operations (e.g. rm) on the host. There are a few nuances to this, however, as some of the build directories are referenced via symlinks.
'ftc' currently supports removing jobs and nodes. I don't recall off the top of my head if this includes removing all the builds for a job or not. But in any case, it sounds like you only want to remove some of the builds/runs, not the jobs themselves.
We could possibly support 'ftc rm-run', which could remove specific runs. 'ftc query-runs'
could be used to generate a list of runs (e.g. that were created before a certain date).Please provide a few more details, and maybe we can talk through and/or develop some solutions that will help meet your needs.
-- Tim
Quoted 34 lines · On Thu, Feb 1, 2024 at 11:52 PM <[email protected]> wrote:
Quoted 26 lines
Greetings!
This is the mlmmj program managing the <[email protected]> mailing list.
Your message to <[email protected]> was not delivered to the list because it contained a HTML part. Only text/plain messages are allowed on this list.
Please configure your mail client to only send plain text mail.
For your reference, the rejected message follows below.
---------- Forwarded message ----------
From: dhinakar k <[email protected]>
To: [email protected], [email protected], "Bird, Timothy" <[email protected]>
Cc:
Bcc:
Date: Thu, 1 Feb 2024 23:51:30 +0530
Subject: Re: Distribute continuous integration (build) to servers outside docker container Dear Fuego users,Quoted 2 lines
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 3 lines
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
Quoted 8 lines
too many builds happening, which puts pressure on the hard disk (so
many read/writes) and also increases the docker container size (because of build logs).Quoted 4 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all
cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers(outside docker container) so that docker size won't be growing rapidly.
Quoted 24 lines
Quoted 3 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 16 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.Quoted 6 lines · dhinakar k
Dear Fuego users,
I have a requirement, so I thought of checking with the community if it was feasible and if so what is the best or most efficient way to
implement it.
Quoted 3 lines
Quoted 3 lines
We have fuego setup in a server and all our continuous integration jobs (for multiple code bases) are setup in it. But the issue is there are
Quoted 8 lines
too many builds happening, which puts pressure on the hard disk (so
many read/writes) and also increases the docker container size (because of build logs).Quoted 4 lines
Quoted 4 lines
Hence I would like to know if we can distribute the load to another server, for e.g. job will be created on our main server but build will
happen on the agent on another server. The idea is to move out all
cpu, memory, storage intensive activity to agents (other servers) on the network. The resultant logs can also be stored on those servers(outside docker container) so that docker size won't be growing rapidly.
Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
I tried creating a new node and setup an agent (connect via ssh) but facing issues in installing the 'SSH Build Agents' plugin because of
compatibility issues (jenkins version needs to be upgraded).
Quoted 8 lines
Quoted 8 lines
If anyone already tried and has a solution for this issue please let me know.
Also, what is the best way to backup the container after trimming it down (remove unwanted files/logs etc. and reduce it's size)?
Regards,
Dhinakar K.
Samsung India, Bengaluru.